[pyasn1] Fix componentType to accept Asn1Type in SequenceOf (#15442)

This commit is contained in:
Emmanuel Ferdman
2026-03-18 13:49:52 +01:00
committed by GitHub
parent 9c855f37cb
commit 50ec9108eb
4 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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): ...
+2 -2
View File
@@ -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: ...