mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-24 17:28:40 +08:00
Add default values for third-party stubs beginning with 'P' (#9957)
This commit is contained in:
@@ -13,11 +13,11 @@ class AbstractDecoder:
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Incomplete | None = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Incomplete | None = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
) -> None: ...
|
||||
# Abstract, but implementation is optional
|
||||
@@ -25,11 +25,11 @@ class AbstractDecoder:
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Incomplete | None = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Incomplete | None = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
) -> None: ...
|
||||
|
||||
@@ -43,22 +43,22 @@ class ExplicitTagDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
def indefLenValueDecoder(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -68,11 +68,11 @@ class IntegerDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Unused = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Unused = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -86,22 +86,22 @@ class BitStringDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
def indefLenValueDecoder(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -112,22 +112,22 @@ class OctetStringDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
def indefLenValueDecoder(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -137,11 +137,11 @@ class NullDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Unused = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Unused = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -151,11 +151,11 @@ class ObjectIdentifierDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Unused = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Unused = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -165,11 +165,11 @@ class RealDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Unused = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Unused = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -183,22 +183,22 @@ class UniversalConstructedTypeDecoder(AbstractConstructedDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
def indefLenValueDecoder(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -228,22 +228,22 @@ class ChoiceDecoder(AbstractConstructedDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Incomplete | None = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Incomplete | None = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
def indefLenValueDecoder(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Incomplete | None = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Incomplete | None = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -253,22 +253,22 @@ class AnyDecoder(AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
def indefLenValueDecoder(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Callable[..., Incomplete] | None = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Callable[..., Incomplete] | None = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
@@ -318,16 +318,16 @@ class Decoder:
|
||||
defaultErrorState: int
|
||||
defaultRawDecoder: AnyDecoder
|
||||
supportIndefLength: bool
|
||||
def __init__(self, tagMap, typeMap=...) -> None: ...
|
||||
def __init__(self, tagMap, typeMap={}) -> None: ...
|
||||
def __call__(
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec: Asn1Type | None = ...,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state=...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Callable[..., Incomplete] | None = ...,
|
||||
asn1Spec: Asn1Type | None = None,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state=0,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Callable[..., Incomplete] | None = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class AbstractItemEncoder:
|
||||
def encodeLength(self, length, defMode): ...
|
||||
@abstractmethod
|
||||
def encodeValue(self, value, asn1Spec, encodeFun, **options) -> None: ...
|
||||
def encode(self, value, asn1Spec: Asn1Type | None = ..., encodeFun: Incomplete | None = ..., **options): ...
|
||||
def encode(self, value, asn1Spec: Asn1Type | None = None, encodeFun: Incomplete | None = None, **options): ...
|
||||
|
||||
class EndOfOctetsEncoder(AbstractItemEncoder):
|
||||
def encodeValue(self, value, asn1Spec, encodeFun, **options): ...
|
||||
@@ -61,7 +61,7 @@ class AnyEncoder(OctetStringEncoder):
|
||||
class Encoder:
|
||||
fixedDefLengthMode: bool | None
|
||||
fixedChunkSize: int | None
|
||||
def __init__(self, tagMap, typeMap=...) -> None: ...
|
||||
def __call__(self, value, asn1Spec: Asn1Type | None = ..., **options): ...
|
||||
def __init__(self, tagMap, typeMap={}) -> None: ...
|
||||
def __call__(self, value, asn1Spec: Asn1Type | None = None, **options): ...
|
||||
|
||||
encode: Encoder
|
||||
|
||||
@@ -10,11 +10,11 @@ class BooleanDecoder(decoder.AbstractSimpleDecoder):
|
||||
self,
|
||||
substrate,
|
||||
asn1Spec,
|
||||
tagSet: TagSet | None = ...,
|
||||
length: int | None = ...,
|
||||
state: Unused = ...,
|
||||
decodeFun: Unused = ...,
|
||||
substrateFun: Unused = ...,
|
||||
tagSet: TagSet | None = None,
|
||||
length: int | None = None,
|
||||
state: Unused = None,
|
||||
decodeFun: Unused = None,
|
||||
substrateFun: Unused = None,
|
||||
**options,
|
||||
): ...
|
||||
|
||||
|
||||
@@ -2,19 +2,19 @@ from _typeshed import Incomplete, Unused
|
||||
from collections.abc import Callable
|
||||
|
||||
class AbstractScalarDecoder:
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Unused = ..., **options): ...
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Unused = None, **options): ...
|
||||
|
||||
class BitStringDecoder(AbstractScalarDecoder):
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Unused = ..., **options): ...
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Unused = None, **options): ...
|
||||
|
||||
class SequenceOrSetDecoder:
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Callable[..., Incomplete] | None = ..., **options): ...
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Callable[..., Incomplete] | None = None, **options): ...
|
||||
|
||||
class SequenceOfOrSetOfDecoder:
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Callable[..., Incomplete] | None = ..., **options): ...
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Callable[..., Incomplete] | None = None, **options): ...
|
||||
|
||||
class ChoiceDecoder:
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Callable[..., Incomplete] | None = ..., **options): ...
|
||||
def __call__(self, pyObject, asn1Spec, decodeFun: Callable[..., Incomplete] | None = None, **options): ...
|
||||
|
||||
class Decoder:
|
||||
def __init__(self, tagMap, typeMap) -> None: ...
|
||||
|
||||
@@ -45,7 +45,7 @@ class AnyEncoder(AbstractItemEncoder):
|
||||
def encode(self, value, encodeFun, **options): ...
|
||||
|
||||
class Encoder:
|
||||
def __init__(self, tagMap, typeMap=...) -> None: ...
|
||||
def __init__(self, tagMap, typeMap={}) -> None: ...
|
||||
def __call__(self, value, **options): ...
|
||||
|
||||
encode: Encoder
|
||||
|
||||
@@ -3,6 +3,6 @@ from typing_extensions import Literal
|
||||
implementation: str
|
||||
null: Literal[b""]
|
||||
|
||||
def from_bytes(octets, signed: bool = ...): ...
|
||||
def to_bytes(value, signed: bool = ..., length: int = ...): ...
|
||||
def from_bytes(octets, signed: bool = False): ...
|
||||
def to_bytes(value, signed: bool = False, length: int = 0): ...
|
||||
def bitLength(number): ...
|
||||
|
||||
@@ -4,9 +4,9 @@ from typing import TextIO
|
||||
class Printer:
|
||||
def __init__(
|
||||
self,
|
||||
logger: logging.Logger | None = ...,
|
||||
handler: logging.StreamHandler[TextIO] | None = ...,
|
||||
formatter: logging.Formatter | None = ...,
|
||||
logger: logging.Logger | None = None,
|
||||
handler: logging.StreamHandler[TextIO] | None = None,
|
||||
formatter: logging.Formatter | None = None,
|
||||
) -> None: ...
|
||||
def __call__(self, msg) -> None: ...
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ class ValueConstraintError(PyAsn1Error): ...
|
||||
class SubstrateUnderrunError(PyAsn1Error): ...
|
||||
|
||||
class PyAsn1UnicodeError(PyAsn1Error, UnicodeError):
|
||||
def __init__(self, message, unicode_error: UnicodeError | None = ...) -> None: ...
|
||||
def __init__(self, message, unicode_error: UnicodeError | None = None) -> None: ...
|
||||
|
||||
class PyAsn1UnicodeDecodeError(PyAsn1UnicodeError, UnicodeDecodeError): ...
|
||||
class PyAsn1UnicodeEncodeError(PyAsn1UnicodeError, UnicodeEncodeError): ...
|
||||
|
||||
@@ -7,7 +7,7 @@ from pyasn1.type.tag import TagSet
|
||||
|
||||
class Asn1Item:
|
||||
@classmethod
|
||||
def getTypeId(cls, increment: int = ...): ...
|
||||
def getTypeId(cls, increment: int = 1): ...
|
||||
|
||||
class Asn1Type(Asn1Item):
|
||||
tagSet: TagSet
|
||||
@@ -21,11 +21,11 @@ class Asn1Type(Asn1Item):
|
||||
def effectiveTagSet(self): ...
|
||||
@property
|
||||
def tagMap(self): ...
|
||||
def isSameTypeWith(self, other, matchTags: bool = ..., matchConstraints: bool = ...): ...
|
||||
def isSuperTypeOf(self, other, matchTags: bool = ..., matchConstraints: bool = ...): ...
|
||||
def isSameTypeWith(self, other, matchTags: bool = True, matchConstraints: bool = True): ...
|
||||
def isSuperTypeOf(self, other, matchTags: bool = True, matchConstraints: bool = True): ...
|
||||
@staticmethod
|
||||
def isNoValue(*values): ...
|
||||
def prettyPrint(self, scope: int = ...) -> None: ...
|
||||
def prettyPrint(self, scope: int = 0) -> None: ...
|
||||
def getTagSet(self): ...
|
||||
def getEffectiveTagSet(self): ...
|
||||
def getTagMap(self): ...
|
||||
@@ -118,8 +118,8 @@ class SimpleAsn1Type(Asn1Type):
|
||||
def subtype(self, value=..., **kwargs): ...
|
||||
def prettyIn(self, value): ...
|
||||
def prettyOut(self, value): ...
|
||||
def prettyPrint(self, scope: int = ...): ...
|
||||
def prettyPrintType(self, scope: int = ...): ...
|
||||
def prettyPrint(self, scope: int = 0): ...
|
||||
def prettyPrintType(self, scope: int = 0): ...
|
||||
|
||||
AbstractSimpleAsn1Item = SimpleAsn1Type
|
||||
|
||||
@@ -140,7 +140,7 @@ class ConstructedAsn1Type(Asn1Type):
|
||||
def clone(self, **kwargs): ...
|
||||
def subtype(self, **kwargs): ...
|
||||
def getComponentByPosition(self, idx) -> None: ...
|
||||
def setComponentByPosition(self, idx, value, verifyConstraints: bool = ...) -> None: ...
|
||||
def setComponentByPosition(self, idx, value, verifyConstraints: bool = True) -> None: ...
|
||||
def setComponents(self, *args, **kwargs): ...
|
||||
def setDefaultComponents(self) -> None: ...
|
||||
def getComponentType(self): ...
|
||||
|
||||
@@ -4,10 +4,10 @@ from pyasn1.type.tag import TagSet
|
||||
class AbstractCharacterString(univ.OctetString):
|
||||
def __bytes__(self) -> bytes: ...
|
||||
def prettyIn(self, value): ...
|
||||
def asOctets(self, padding: bool = ...): ...
|
||||
def asNumbers(self, padding: bool = ...): ...
|
||||
def asOctets(self, padding: bool = True): ...
|
||||
def asNumbers(self, padding: bool = True): ...
|
||||
def prettyOut(self, value): ...
|
||||
def prettyPrint(self, scope: int = ...): ...
|
||||
def prettyPrint(self, scope: int = 0): ...
|
||||
def __reversed__(self): ...
|
||||
|
||||
class NumericString(AbstractCharacterString):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class AbstractConstraint:
|
||||
def __init__(self, *values) -> None: ...
|
||||
def __call__(self, value, idx: int | None = ...) -> None: ...
|
||||
def __call__(self, value, idx: int | None = None) -> None: ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class NamedType:
|
||||
isOptional: bool
|
||||
isDefaulted: bool
|
||||
def __init__(self, name, asn1Object, openType: type | None = ...) -> None: ...
|
||||
def __init__(self, name, asn1Object, openType: type | None = None) -> None: ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
|
||||
@@ -4,7 +4,7 @@ from collections.abc import Mapping
|
||||
from pyasn1.type.base import Asn1Type
|
||||
|
||||
class OpenType:
|
||||
def __init__(self, name, typeMap: Mapping[Incomplete, Asn1Type] | None = ...) -> None: ...
|
||||
def __init__(self, name, typeMap: Mapping[Incomplete, Asn1Type] | None = None) -> None: ...
|
||||
@property
|
||||
def name(self): ...
|
||||
def values(self): ...
|
||||
|
||||
@@ -29,7 +29,7 @@ class Tag:
|
||||
def tagId(self): ...
|
||||
|
||||
class TagSet:
|
||||
def __init__(self, baseTag=..., *superTags) -> None: ...
|
||||
def __init__(self, baseTag=(), *superTags) -> None: ...
|
||||
def __add__(self, superTag): ...
|
||||
def __radd__(self, superTag): ...
|
||||
def __getitem__(self, i): ...
|
||||
|
||||
@@ -5,9 +5,9 @@ from pyasn1.type.base import Asn1Type
|
||||
class TagMap:
|
||||
def __init__(
|
||||
self,
|
||||
presentTypes: Mapping[TagMap, Asn1Type] | None = ...,
|
||||
skipTypes: Container[TagMap] | None = ...,
|
||||
defaultType: Asn1Type | None = ...,
|
||||
presentTypes: Mapping[TagMap, Asn1Type] | None = None,
|
||||
skipTypes: Container[TagMap] | None = None,
|
||||
defaultType: Asn1Type | None = None,
|
||||
) -> None: ...
|
||||
def __contains__(self, tagSet) -> bool: ...
|
||||
def __getitem__(self, tagSet): ...
|
||||
|
||||
@@ -34,7 +34,7 @@ class Integer(base.SimpleAsn1Type):
|
||||
def __mod__(self, value): ...
|
||||
def __rmod__(self, value): ...
|
||||
# Accepts everything builtins.pow does
|
||||
def __pow__(self, value: complex, modulo: int | None = ...) -> Self: ...
|
||||
def __pow__(self, value: complex, modulo: int | None = None) -> Self: ...
|
||||
def __rpow__(self, value): ...
|
||||
def __floordiv__(self, value): ...
|
||||
def __rfloordiv__(self, value): ...
|
||||
@@ -50,7 +50,7 @@ class Integer(base.SimpleAsn1Type):
|
||||
def __pos__(self): ...
|
||||
def __neg__(self): ...
|
||||
def __invert__(self): ...
|
||||
def __round__(self, n: int = ...): ...
|
||||
def __round__(self, n: int = 0): ...
|
||||
def __floor__(self): ...
|
||||
def __ceil__(self): ...
|
||||
def __trunc__(self): ...
|
||||
@@ -109,11 +109,11 @@ class BitString(base.SimpleAsn1Type):
|
||||
def asInteger(self): ...
|
||||
def asBinary(self): ...
|
||||
@classmethod
|
||||
def fromHexString(cls, value, internalFormat: bool = ..., prepend: _SizedIntegerable | None = ...): ...
|
||||
def fromHexString(cls, value, internalFormat: bool = False, prepend: _SizedIntegerable | None = None): ...
|
||||
@classmethod
|
||||
def fromBinaryString(cls, value, internalFormat: bool = ..., prepend: _SizedIntegerable | None = ...): ...
|
||||
def fromBinaryString(cls, value, internalFormat: bool = False, prepend: _SizedIntegerable | None = None): ...
|
||||
@classmethod
|
||||
def fromOctetString(cls, value, internalFormat: bool = ..., prepend: _SizedIntegerable | None = ..., padding: int = ...): ...
|
||||
def fromOctetString(cls, value, internalFormat: bool = False, prepend: _SizedIntegerable | None = None, padding: int = 0): ...
|
||||
def prettyIn(self, value): ...
|
||||
|
||||
class OctetString(base.SimpleAsn1Type):
|
||||
@@ -129,7 +129,7 @@ class OctetString(base.SimpleAsn1Type):
|
||||
def asOctets(self): ...
|
||||
def asNumbers(self): ...
|
||||
def prettyOut(self, value): ...
|
||||
def prettyPrint(self, scope: int = ...): ...
|
||||
def prettyPrint(self, scope: int = 0): ...
|
||||
@staticmethod
|
||||
def fromBinaryString(value): ...
|
||||
@staticmethod
|
||||
@@ -174,7 +174,7 @@ class Real(base.SimpleAsn1Type):
|
||||
subtypeSpec: constraint.ConstraintsIntersection
|
||||
typeId: int
|
||||
def prettyIn(self, value): ...
|
||||
def prettyPrint(self, scope: int = ...): ...
|
||||
def prettyPrint(self, scope: int = 0): ...
|
||||
@property
|
||||
def isPlusInf(self): ...
|
||||
@property
|
||||
@@ -190,7 +190,7 @@ class Real(base.SimpleAsn1Type):
|
||||
def __mod__(self, value): ...
|
||||
def __rmod__(self, value): ...
|
||||
# Accepts everything builtins.pow with a float base does
|
||||
def __pow__(self, value: complex, modulo: int | None = ...) -> Self: ...
|
||||
def __pow__(self, value: complex, modulo: int | None = None) -> Self: ...
|
||||
def __rpow__(self, value): ...
|
||||
def __truediv__(self, value): ...
|
||||
def __rtruediv__(self, value): ...
|
||||
@@ -201,7 +201,7 @@ class Real(base.SimpleAsn1Type):
|
||||
def __abs__(self): ...
|
||||
def __pos__(self): ...
|
||||
def __neg__(self): ...
|
||||
def __round__(self, n: int = ...): ...
|
||||
def __round__(self, n: int = 0): ...
|
||||
def __floor__(self): ...
|
||||
def __ceil__(self): ...
|
||||
def __trunc__(self): ...
|
||||
@@ -240,14 +240,14 @@ class SequenceOfAndSetOfBase(base.ConstructedAsn1Type):
|
||||
def append(self, value) -> None: ...
|
||||
def count(self, value): ...
|
||||
def extend(self, values) -> None: ...
|
||||
def index(self, value, start: int = ..., stop: int | None = ...): ...
|
||||
def index(self, value, start: int = 0, stop: int | None = None): ...
|
||||
def reverse(self) -> None: ...
|
||||
def sort(self, key: Callable[[Incomplete], SupportsRichComparison] | None = ..., reverse: bool = ...) -> None: ...
|
||||
def sort(self, key: Callable[[Incomplete], SupportsRichComparison] | None = None, reverse: bool = False) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __iter__(self): ...
|
||||
def getComponentByPosition(self, idx, default=..., instantiate: bool = ...): ...
|
||||
def getComponentByPosition(self, idx, default=..., instantiate: bool = True): ...
|
||||
def setComponentByPosition(
|
||||
self, idx, value=..., verifyConstraints: bool = ..., matchTags: bool = ..., matchConstraints: bool = ...
|
||||
self, idx, value=..., verifyConstraints: bool = True, matchTags: bool = True, matchConstraints: bool = True
|
||||
): ...
|
||||
@property
|
||||
def componentTagMap(self): ...
|
||||
@@ -255,8 +255,8 @@ class SequenceOfAndSetOfBase(base.ConstructedAsn1Type):
|
||||
def components(self): ...
|
||||
def clear(self): ...
|
||||
def reset(self): ...
|
||||
def prettyPrint(self, scope: int = ...): ...
|
||||
def prettyPrintType(self, scope: int = ...): ...
|
||||
def prettyPrint(self, scope: int = 0): ...
|
||||
def prettyPrintType(self, scope: int = 0): ...
|
||||
@property
|
||||
def isValue(self): ...
|
||||
@property
|
||||
@@ -295,20 +295,20 @@ class SequenceAndSetBase(base.ConstructedAsn1Type):
|
||||
def reset(self): ...
|
||||
@property
|
||||
def components(self): ...
|
||||
def getComponentByName(self, name, default=..., instantiate: bool = ...): ...
|
||||
def getComponentByName(self, name, default=..., instantiate: bool = True): ...
|
||||
def setComponentByName(
|
||||
self, name, value=..., verifyConstraints: bool = ..., matchTags: bool = ..., matchConstraints: bool = ...
|
||||
self, name, value=..., verifyConstraints: bool = True, matchTags: bool = True, matchConstraints: bool = True
|
||||
): ...
|
||||
def getComponentByPosition(self, idx, default=..., instantiate: bool = ...): ...
|
||||
def getComponentByPosition(self, idx, default=..., instantiate: bool = True): ...
|
||||
def setComponentByPosition(
|
||||
self, idx, value=..., verifyConstraints: bool = ..., matchTags: bool = ..., matchConstraints: bool = ...
|
||||
self, idx, value=..., verifyConstraints: bool = True, matchTags: bool = True, matchConstraints: bool = True
|
||||
): ...
|
||||
@property
|
||||
def isValue(self): ...
|
||||
@property
|
||||
def isInconsistent(self): ...
|
||||
def prettyPrint(self, scope: int = ...): ...
|
||||
def prettyPrintType(self, scope: int = ...): ...
|
||||
def prettyPrint(self, scope: int = 0): ...
|
||||
def prettyPrintType(self, scope: int = 0): ...
|
||||
def setDefaultComponents(self): ...
|
||||
def getComponentType(self): ...
|
||||
def getNameByPosition(self, idx): ...
|
||||
@@ -326,16 +326,16 @@ class Set(SequenceAndSetBase):
|
||||
componentType: namedtype.NamedTypes
|
||||
subtypeSpec: constraint.ConstraintsIntersection
|
||||
typeId: int
|
||||
def getComponent(self, innerFlag: bool = ...): ...
|
||||
def getComponentByType(self, tagSet, default=..., instantiate: bool = ..., innerFlag: bool = ...): ...
|
||||
def getComponent(self, innerFlag: bool = False): ...
|
||||
def getComponentByType(self, tagSet, default=..., instantiate: bool = True, innerFlag: bool = False): ...
|
||||
def setComponentByType(
|
||||
self,
|
||||
tagSet,
|
||||
value=...,
|
||||
verifyConstraints: bool = ...,
|
||||
matchTags: bool = ...,
|
||||
matchConstraints: bool = ...,
|
||||
innerFlag: bool = ...,
|
||||
verifyConstraints: bool = True,
|
||||
matchTags: bool = True,
|
||||
matchConstraints: bool = True,
|
||||
innerFlag: bool = False,
|
||||
): ...
|
||||
@property
|
||||
def componentTagMap(self): ...
|
||||
@@ -359,16 +359,16 @@ class Choice(Set):
|
||||
def keys(self) -> Generator[Incomplete, None, None]: ...
|
||||
def items(self) -> Generator[Incomplete, None, None]: ...
|
||||
def checkConsistency(self) -> None: ...
|
||||
def getComponentByPosition(self, idx, default=..., instantiate: bool = ...): ...
|
||||
def getComponentByPosition(self, idx, default=..., instantiate: bool = True): ...
|
||||
def setComponentByPosition(
|
||||
self, idx, value=..., verifyConstraints: bool = ..., matchTags: bool = ..., matchConstraints: bool = ...
|
||||
self, idx, value=..., verifyConstraints: bool = True, matchTags: bool = True, matchConstraints: bool = True
|
||||
): ...
|
||||
@property
|
||||
def effectiveTagSet(self): ...
|
||||
@property
|
||||
def tagMap(self): ...
|
||||
def getComponent(self, innerFlag: bool = ...): ...
|
||||
def getName(self, innerFlag: bool = ...): ...
|
||||
def getComponent(self, innerFlag: bool = False): ...
|
||||
def getName(self, innerFlag: bool = False): ...
|
||||
@property
|
||||
def isValue(self): ...
|
||||
def clear(self): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ class ObjectDescriptor(char.GraphicString):
|
||||
|
||||
class TimeMixIn:
|
||||
class FixedOffset(datetime.tzinfo):
|
||||
def __init__(self, offset: int = ..., name: str = ...) -> None: ...
|
||||
def __init__(self, offset: int = 0, name: str = "UTC") -> None: ...
|
||||
def utcoffset(self, dt): ...
|
||||
def tzname(self, dt): ...
|
||||
def dst(self, dt): ...
|
||||
|
||||
Reference in New Issue
Block a user