Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/python-jose/METADATA.toml
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
version = "3.3.*"
requires = [] # excluding pyasn1, pyrsa, cryptography until typing is available
requires = ["types-pyasn1"] # excluding pyrsa, cryptography until typing is available

[tool.stubtest]
ignore_missing_stub = false
27 changes: 11 additions & 16 deletions stubs/python-jose/jose/backends/_asn1.pyi
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
fromtypingimportAny
fromtyping_extensionsimportTypeAlias

# Enable when pyasn1 gets stubs:
# from pyasn1.type import univ
_Sequence: TypeAlias=Any
frompyasn1.typeimportnamedtype, univ

RSA_ENCRYPTION_ASN1_OID: str

classRsaAlgorithmIdentifier(_Sequence):
componentType: Any
classRsaAlgorithmIdentifier(univ.Sequence):
componentType: namedtype.NamedTypes

classPKCS8PrivateKey(_Sequence):
componentType: Any
classPKCS8PrivateKey(univ.Sequence):
componentType: namedtype.NamedTypes

classPublicKeyInfo(_Sequence):
componentType: Any
classPublicKeyInfo(univ.Sequence):
componentType: namedtype.NamedTypes

defrsa_private_key_pkcs8_to_pkcs1(pkcs8_key): ...
defrsa_private_key_pkcs1_to_pkcs8(pkcs1_key): ...
defrsa_public_key_pkcs1_to_pkcs8(pkcs1_key): ...
defrsa_public_key_pkcs8_to_pkcs1(pkcs8_key): ...
defrsa_private_key_pkcs8_to_pkcs1(pkcs8_key)->bytes: ...
defrsa_private_key_pkcs1_to_pkcs8(pkcs1_key)->bytes: ...
defrsa_public_key_pkcs1_to_pkcs8(pkcs1_key)->bytes: ...
defrsa_public_key_pkcs8_to_pkcs1(pkcs8_key)->bytes: ...
Comment on lines +14 to +17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll trust that you're correct here; the source code is a maze 😆