mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Always use TypeAlias when assigning to Any (#8021)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# Enable when pyasn1 gets stubs:
|
||||
# from pyasn1.type.univ import Sequence
|
||||
Sequence = Any
|
||||
Sequence: TypeAlias = Any
|
||||
|
||||
class SicilyBindResponse(Sequence):
|
||||
tagSet: Any
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# Enable when pyasn1 gets stubs:
|
||||
# from pyasn1.type.univ import Integer, OctetString, Sequence, SequenceOf
|
||||
Integer = Any
|
||||
OctetString = Any
|
||||
Sequence = Any
|
||||
SequenceOf = Any
|
||||
Integer: TypeAlias = Any
|
||||
OctetString: TypeAlias = Any
|
||||
Sequence: TypeAlias = Any
|
||||
SequenceOf: TypeAlias = Any
|
||||
|
||||
NMAS_LDAP_EXT_VERSION: int
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# Enable when pyasn1 gets stubs:
|
||||
# from pyasn1.type.univ import Enumerated, Sequence
|
||||
Enumerated = Any
|
||||
Sequence = Any
|
||||
Enumerated: TypeAlias = Any
|
||||
Sequence: TypeAlias = Any
|
||||
|
||||
class PersistentSearchControl(Sequence):
|
||||
componentType: Any
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# Enable when pyasn1 gets stubs:
|
||||
# from pyasn1.type.univ import Integer, OctetString, Sequence
|
||||
Integer = Any
|
||||
OctetString = Any
|
||||
Sequence = Any
|
||||
Integer: TypeAlias = Any
|
||||
OctetString: TypeAlias = Any
|
||||
Sequence: TypeAlias = Any
|
||||
|
||||
MAXINT: Any
|
||||
rangeInt0ToMaxConstraint: Any
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# Enable when pyasn1 gets stubs:
|
||||
# from pyasn1.type.univ import OctetString, Sequence
|
||||
OctetString = Any
|
||||
Sequence = Any
|
||||
OctetString: TypeAlias = Any
|
||||
Sequence: TypeAlias = Any
|
||||
|
||||
class UserIdentity(OctetString):
|
||||
tagSet: Any
|
||||
|
||||
Reference in New Issue
Block a user