From 3bfdb0c3f03f34797e65f961704690a19cf83966 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 21 Feb 2025 12:54:55 +0300 Subject: [PATCH] Bump python-jose to 3.4.* --- stubs/python-jose/@tests/stubtest_allowlist.txt | 3 +++ stubs/python-jose/jose/constants.pyi | 2 ++ stubs/python-jose/jose/utils.pyi | 2 ++ 3 files changed, 7 insertions(+) diff --git a/stubs/python-jose/@tests/stubtest_allowlist.txt b/stubs/python-jose/@tests/stubtest_allowlist.txt index efd6e0e11b8d..35fe14b402be 100644 --- a/stubs/python-jose/@tests/stubtest_allowlist.txt +++ b/stubs/python-jose/@tests/stubtest_allowlist.txt @@ -4,3 +4,6 @@ jose.backends.CryptographyECKey jose.backends.CryptographyHMACKey jose.backends.CryptographyRSAKey jose.backends.ECDSAECKey + +# See https://github.com/mpdavis/python-jose/pull/372 +jose.jwt.utc_now diff --git a/stubs/python-jose/jose/constants.pyi b/stubs/python-jose/jose/constants.pyi index 209a9056b815..26a658a12474 100644 --- a/stubs/python-jose/jose/constants.pyi +++ b/stubs/python-jose/jose/constants.pyi @@ -70,3 +70,5 @@ class Zips: SUPPORTED: set[str | None] ZIPS: Zips + +JWE_SIZE_LIMIT: int diff --git a/stubs/python-jose/jose/utils.pyi b/stubs/python-jose/jose/utils.pyi index 13adfb02f3aa..eb986b885eb3 100644 --- a/stubs/python-jose/jose/utils.pyi +++ b/stubs/python-jose/jose/utils.pyi @@ -12,3 +12,5 @@ def base64url_decode(input: bytes) -> bytes: ... def base64url_encode(input: bytes) -> bytes: ... def timedelta_total_seconds(delta: timedelta) -> int: ... def ensure_binary(s: str | bytes) -> bytes: ... +def is_pem_format(key: bytes) -> bool: ... +def is_ssh_key(key: bytes) -> bool: