]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - pyderasn.pyi
Announcement template
[pyderasn.git] / pyderasn.pyi
index 83f00329d7d65dcb2bcd404a3ba04869d5931918..702a115ab7b59086988f01a39d807ea7896cb104 100644 (file)
@@ -183,6 +183,7 @@ class Boolean(Obj):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "Boolean"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -215,6 +216,7 @@ class Integer(Obj):
     asn1_type_name = ...  # type: str
     specs = ...  # type: Dict[str, int]
     default = ...  # type: "Integer"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -254,6 +256,7 @@ class BitString(Obj):
     asn1_type_name = ...  # type: str
     specs = ...  # type: Dict[str, int]
     default = ...  # type: "BitString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -293,6 +296,7 @@ class OctetString(Obj):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "OctetString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -328,6 +332,7 @@ class Null(Obj):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "Null"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -355,6 +360,7 @@ class ObjectIdentifier(Obj):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "ObjectIdentifier"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -391,6 +397,7 @@ class Enumerated(Integer):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "Enumerated"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -426,6 +433,7 @@ class UTF8String(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "UTF8String"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -445,6 +453,7 @@ class NumericString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "NumericString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -462,6 +471,7 @@ class PrintableString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "PrintableString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -479,6 +489,7 @@ class TeletexString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "TeletexString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -494,6 +505,7 @@ class TeletexString(CommonString):
 class T61String(TeletexString):
     asn1_type_name = ...  # type: str
     default = ...  # type: "T61String"
+    optional = ...  # type: bool
 
 
 class VideotexString(CommonString):
@@ -501,6 +513,7 @@ class VideotexString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "VideotexString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -518,6 +531,7 @@ class IA5String(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "IA5String"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -535,6 +549,7 @@ class UTCTime(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "UTCTime"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -554,6 +569,7 @@ class GeneralizedTime(UTCTime):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "GeneralizedTime"
+    optional = ...  # type: bool
 
     def todatetime(self) -> datetime: ...
 
@@ -563,6 +579,7 @@ class GraphicString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "GraphicString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -580,6 +597,7 @@ class VisibleString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "VisibleString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -595,6 +613,7 @@ class VisibleString(CommonString):
 class ISO646String(VisibleString):
     asn1_type_name = ...  # type: str
     default = ...  # type: "ISO646String"
+    optional = ...  # type: bool
 
 
 class GeneralString(CommonString):
@@ -602,6 +621,7 @@ class GeneralString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "GeneralString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -619,6 +639,7 @@ class UniversalString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "UniversalString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -636,6 +657,7 @@ class BMPString(CommonString):
     encoding = ...  # type: str
     asn1_type_name = ...  # type: str
     default = ...  # type: "BMPString"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -653,6 +675,7 @@ class Choice(Obj):
     asn1_type_name = ...  # type: str
     specs = ...  # type: Dict[str, Obj]
     default = ...  # type: "Choice"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -703,6 +726,7 @@ class Any(Obj):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "Any"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -736,6 +760,7 @@ class Sequence(Obj):
     asn1_type_name = ...  # type: str
     specs = ...  # type: Dict[str, Obj]
     default = ...  # type: "Sequence"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -771,6 +796,7 @@ class Set(Sequence):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "Set"
+    optional = ...  # type: bool
 
 
 class SequenceOf(Obj):
@@ -778,6 +804,7 @@ class SequenceOf(Obj):
     asn1_type_name = ...  # type: str
     spec = ...  # type: Obj
     default = ...  # type: "SequenceOf"
+    optional = ...  # type: bool
 
     def __init__(
             self,
@@ -817,6 +844,7 @@ class SetOf(SequenceOf):
     tag_default = ...  # type: bytes
     asn1_type_name = ...  # type: str
     default = ...  # type: "SetOf"
+    optional = ...  # type: bool
 
 
 def obj_by_path(pypath: str) -> TAny: ...