Skip to content

Commit

Permalink
Fix mypy error for AsymmetricSignatureVerifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed May 5, 2023
1 parent 1976d68 commit b8a4a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth0/authentication/token_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def _fetch_key(self, key_id: str) -> str | RSAPublicKey:
Must be implemented by subclasses.
Args:
key_id (str, optional): The id of the key to fetch.
key_id (str): The id of the key to fetch.
Returns:
the key to use for verifying a cryptographic signature
Expand Down Expand Up @@ -250,7 +250,7 @@ def __init__(
super().__init__(algorithm)
self._fetcher = JwksFetcher(jwks_url, cache_ttl)

def _fetch_key(self, key_id: str | None = None) -> RSAPublicKey:
def _fetch_key(self, key_id: str) -> RSAPublicKey:
return self._fetcher.get_key(key_id)


Expand Down

0 comments on commit b8a4a2c

Please sign in to comment.