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: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This project adheres to `Semantic Versioning <https://semver.org/>`__.
Fixed
~~~~~

- Annotate PyJWKSet.keys for pyright by @tamird in `#1134 <https://github.com/jpadilla/pyjwt/pull/1134>`__

Added
~~~~~

Expand Down
2 changes: 1 addition & 1 deletion jwt/api_jwk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down