mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-14 12:01:06 +08:00
[pyasn1] Fix componentType to accept Asn1Type in SequenceOf (#15442)
This commit is contained in:
@@ -126,7 +126,7 @@ AbstractSimpleAsn1Item = SimpleAsn1Type
|
||||
|
||||
class ConstructedAsn1Type(Asn1Type):
|
||||
strictConstraints: bool
|
||||
componentType: namedtype.NamedTypes | None
|
||||
componentType: namedtype.NamedTypes | Asn1Type | None
|
||||
sizeSpec: constraint.ConstraintsIntersection
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def __eq__(self, other): ...
|
||||
|
||||
@@ -241,13 +241,13 @@ class Enumerated(Integer):
|
||||
namedValues: namedval.NamedValues
|
||||
|
||||
class SequenceOfAndSetOfBase(base.ConstructedAsn1Type):
|
||||
componentType: namedtype.NamedTypes | None
|
||||
componentType: base.Asn1Type | None
|
||||
tagSet: TagSet
|
||||
subtypeSpec: constraint.ConstraintsIntersection
|
||||
def __init__(
|
||||
self,
|
||||
*args,
|
||||
componentType: namedtype.NamedTypes | None = ...,
|
||||
componentType: base.Asn1Type | None = ...,
|
||||
tagSet: TagSet = ...,
|
||||
subtypeSpec: constraint.ConstraintsIntersection = ...,
|
||||
) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user