diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c0974867..9abdd835 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,8 @@ This project adheres to `Semantic Versioning `__. Fixed ~~~~~ +- Annotate PyJWKSet.keys for pyright by @tamird in `#1134 `__ + Added ~~~~~ diff --git a/jwt/api_jwk.py b/jwt/api_jwk.py index 3034d046..960de75c 100644 --- a/jwt/api_jwk.py +++ b/jwt/api_jwk.py @@ -133,7 +133,7 @@ def public_key_use(self) -> str | None: class PyJWKSet: def __init__(self, keys: list[JWKDict]) -> None: - self.keys = [] + self.keys: list[PyJWK] = [] if not keys: raise PyJWKSetError("The JWK Set did not contain any keys")