diff options
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> | 2023-02-07 16:09:41 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 16:09:41 +0600 |
commit | 9695f4c1d153ed8bf2b9ba0ef232c3a90889a1be (patch) | |
tree | d7daf13d579164bff77f3e3fb24fdd74b5adbdbb /jwt | |
parent | 1623dc843b6ae4f34b6ba120b8a5471d10ccfe0e (diff) | |
download | pyjwt-9695f4c1d153ed8bf2b9ba0ef232c3a90889a1be.tar.gz |
[pre-commit.ci] pre-commit autoupdate (#855)
* [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'jwt')
-rw-r--r-- | jwt/algorithms.py | 1 | ||||
-rw-r--r-- | jwt/jwk_set_cache.py | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py index 80d303c..277f940 100644 --- a/jwt/algorithms.py +++ b/jwt/algorithms.py @@ -475,7 +475,6 @@ if has_crypto: @staticmethod def to_jwk(key_obj): - if isinstance(key_obj, EllipticCurvePrivateKey): public_numbers = key_obj.public_key().public_numbers() elif isinstance(key_obj, EllipticCurvePublicKey): diff --git a/jwt/jwk_set_cache.py b/jwt/jwk_set_cache.py index 1b2465c..2432563 100644 --- a/jwt/jwk_set_cache.py +++ b/jwt/jwk_set_cache.py @@ -23,7 +23,6 @@ class JWKSetCache: return self.jwk_set_with_timestamp.get_jwk_set() def is_expired(self) -> bool: - return ( self.jwk_set_with_timestamp is not None and self.lifespan > -1 |