You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyJWKClient.get_signing_key_from_jwt method is not correctly type annotated. Even though the underlying code expects str | bytes, the jwt argument is only annotated with str.
Expected Result
A def get_signing_key_from_jwt(self, token: str | bytes) -> PyJWK: annotation, allowing the library users without having to extraneously decode the jwt.
Ideally, a single JWT: TypeAlias = str | bytes type exported for the library users and used in all relevant annotations.
The text was updated successfully, but these errors were encountered:
PyJWKClient.get_signing_key_from_jwt
method is not correctly type annotated. Even though the underlying code expectsstr | bytes
, thejwt
argument is only annotated withstr
.Expected Result
A
def get_signing_key_from_jwt(self, token: str | bytes) -> PyJWK:
annotation, allowing the library users without having to extraneously decode the jwt.Ideally, a single
JWT: TypeAlias = str | bytes
type exported for the library users and used in all relevant annotations.The text was updated successfully, but these errors were encountered: