pyjwt
pyjwt copied to clipboard
Typing on the get_unverified_header function
Hello, thank you for the tool!
It seems the get_unverified_header
is missing types to use in a strict mypy configuration!
https://github.com/jpadilla/pyjwt/blob/master/jwt/api_jws.py#L202
If I am not mistaken, this might do it:
def get_unverified_header(self, jwt: str) -> Dict[str, Any]:
Actually based on what _load takes, jwt should be a Union[str, bytes]
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Removing stale just waiting for a maintainer to comment if this issue is valid or not.
lgtm, can you open a PR?
Thanks, I might look into it, might take a couple weeks though, pretty busy
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days