File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 1
1
version = " 3.3.*"
2
- requires = [] # excluding pyasn1, pyrsa, cryptography until typing is available
2
+ requires = [" types-pyasn1 " ] # excluding pyrsa, cryptography until typing is available
3
3
4
4
[tool .stubtest ]
5
5
ignore_missing_stub = false
Original file line number Diff line number Diff line change 1
- from typing import Any
2
- from typing_extensions import TypeAlias
3
-
4
- # Enable when pyasn1 gets stubs:
5
- # from pyasn1.type import univ
6
- _Sequence : TypeAlias = Any
1
+ from pyasn1 .type import namedtype , univ
7
2
8
3
RSA_ENCRYPTION_ASN1_OID : str
9
4
10
- class RsaAlgorithmIdentifier (_Sequence ):
11
- componentType : Any
5
+ class RsaAlgorithmIdentifier (univ . Sequence ):
6
+ componentType : namedtype . NamedTypes
12
7
13
- class PKCS8PrivateKey (_Sequence ):
14
- componentType : Any
8
+ class PKCS8PrivateKey (univ . Sequence ):
9
+ componentType : namedtype . NamedTypes
15
10
16
- class PublicKeyInfo (_Sequence ):
17
- componentType : Any
11
+ class PublicKeyInfo (univ . Sequence ):
12
+ componentType : namedtype . NamedTypes
18
13
19
- def rsa_private_key_pkcs8_to_pkcs1 (pkcs8_key ): ...
20
- def rsa_private_key_pkcs1_to_pkcs8 (pkcs1_key ): ...
21
- def rsa_public_key_pkcs1_to_pkcs8 (pkcs1_key ): ...
22
- def rsa_public_key_pkcs8_to_pkcs1 (pkcs8_key ): ...
14
+ def rsa_private_key_pkcs8_to_pkcs1 (pkcs8_key ) -> bytes : ...
15
+ def rsa_private_key_pkcs1_to_pkcs8 (pkcs1_key ) -> bytes : ...
16
+ def rsa_public_key_pkcs1_to_pkcs8 (pkcs1_key ) -> bytes : ...
17
+ def rsa_public_key_pkcs8_to_pkcs1 (pkcs8_key ) -> bytes : ...
You can’t perform that action at this time.
0 commit comments