Incomplete PyJWKClient.get_signing_key_from_jwt
type annotation
#1047
Labels
stale
Issues without activity for more than 60 days
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: