Skip to content

Commit d86ad84

Browse files
authored
Bump python-jose to 3.4.* (python#13522)
1 parent fe64ce1 commit d86ad84

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

stubs/python-jose/@tests/stubtest_allowlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ jose.backends.CryptographyECKey
44
jose.backends.CryptographyHMACKey
55
jose.backends.CryptographyRSAKey
66
jose.backends.ECDSAECKey
7+
8+
# See https://github.com/mpdavis/python-jose/pull/372
9+
jose.jwt.utc_now

stubs/python-jose/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "3.3.*"
1+
version = "3.4.*"
22
upstream_repository = "https://github.com/mpdavis/python-jose"
33
requires = ["types-pyasn1"] # excluding pyrsa, cryptography until typing is available

stubs/python-jose/jose/backends/cryptography_backend.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from _typeshed import Incomplete
2-
from typing import Any
2+
from typing import Any, ClassVar
33

44
from .base import Key
55

@@ -51,6 +51,7 @@ class CryptographyAESKey(Key):
5151
KEY_512: Any
5252
AES_KW_ALGS: Any
5353
MODES: Any
54+
IV_BYTE_LENGTH_MODE_MAP: ClassVar[dict[str, int]]
5455
def __init__(self, key, algorithm) -> None: ...
5556
def to_dict(self): ...
5657
def encrypt(self, plain_text, aad: Incomplete | None = None): ...

stubs/python-jose/jose/constants.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from collections.abc import Callable, Mapping
22
from hashlib import _Hash
3+
from typing import Final
34

45
from .backends.base import Key
56

@@ -70,3 +71,5 @@ class Zips:
7071
SUPPORTED: set[str | None]
7172

7273
ZIPS: Zips
74+
75+
JWE_SIZE_LIMIT: Final[int]

stubs/python-jose/jose/utils.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ def base64url_decode(input: bytes) -> bytes: ...
1212
def base64url_encode(input: bytes) -> bytes: ...
1313
def timedelta_total_seconds(delta: timedelta) -> int: ...
1414
def ensure_binary(s: str | bytes) -> bytes: ...
15+
def is_pem_format(key: bytes) -> bool: ...
16+
def is_ssh_key(key: bytes) -> bool: ...

0 commit comments

Comments
 (0)