feat: add cython defs for Variant class (#74)
This commit is contained in:
parent
cf1f0129ba
commit
cd08f063cc
@ -14,3 +14,10 @@ cdef class SignatureTree:
|
||||
|
||||
cdef public str signature
|
||||
cdef public list types
|
||||
|
||||
|
||||
cdef class Variant:
|
||||
|
||||
cdef public object type
|
||||
cdef public str signature
|
||||
cdef public object value
|
||||
|
||||
@ -403,7 +403,8 @@ class Variant:
|
||||
signature: Union[str, SignatureTree, SignatureType],
|
||||
value: Any,
|
||||
verify: bool = True,
|
||||
):
|
||||
) -> None:
|
||||
"""Init a new Variant."""
|
||||
if type(signature) is SignatureTree:
|
||||
signature_tree = signature
|
||||
elif type(signature) is SignatureType:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user