Third-party stubs: fix several fictitious type aliases (#7958)

This commit is contained in:
Alex Waygood
2022-05-26 14:26:26 +01:00
committed by GitHub
parent 597be79b18
commit fa636bc044
15 changed files with 69 additions and 73 deletions

View File

@@ -1,18 +1,19 @@
from typing import Any
from typing_extensions import TypeAlias
# Enable when pyasn1 gets stubs:
# from pyasn1.type import univ
Sequence = Any
_Sequence: TypeAlias = Any
RSA_ENCRYPTION_ASN1_OID: str
class RsaAlgorithmIdentifier(Sequence):
class RsaAlgorithmIdentifier(_Sequence):
componentType: Any
class PKCS8PrivateKey(Sequence):
class PKCS8PrivateKey(_Sequence):
componentType: Any
class PublicKeyInfo(Sequence):
class PublicKeyInfo(_Sequence):
componentType: Any
def rsa_private_key_pkcs8_to_pkcs1(pkcs8_key): ...