]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - pyderasn.pyi
Decode context and defines feature extending
[pyderasn.git] / pyderasn.pyi
index 702a115ab7b59086988f01a39d807ea7896cb104..1c784fbb2fe15f0018132bb5864048c55b048d90 100644 (file)
@@ -118,6 +118,7 @@ class Obj:
             offset: int=...,
             leavemm: bool=...,
             decode_path: Tuple[str, ...]=...,
+            ctx: Optional[Dict[str, TAny]]=...,
     ) -> Tuple[Obj, bytes]: ...
 
     @property
@@ -297,6 +298,7 @@ class OctetString(Obj):
     asn1_type_name = ...  # type: str
     default = ...  # type: "OctetString"
     optional = ...  # type: bool
+    defined = ...  # type: Tuple[ObjectIdentifier, Obj]
 
     def __init__(
             self,
@@ -365,6 +367,7 @@ class ObjectIdentifier(Obj):
     def __init__(
             self,
             value: Optional[Union["ObjectIdentifier", str, Tuple[int, ...]]]=...,
+            defines: Optional[Sequence[Tuple[str, Dict["ObjectIdentifier", Obj]]]],
             impl: Optional[bytes]=...,
             expl: Optional[bytes]=...,
             default: Optional[Union["ObjectIdentifier", str, Tuple[int, ...]]]=...,
@@ -727,6 +730,7 @@ class Any(Obj):
     asn1_type_name = ...  # type: str
     default = ...  # type: "Any"
     optional = ...  # type: bool
+    defined = ...  # type: Tuple[ObjectIdentifier, Obj]
 
     def __init__(
             self,