fixed type errors when pylance type checking mode is strict.
This commit is contained in:
@ -38,7 +38,7 @@ class Token:
|
||||
return (now + 10) > access_decoded.exp and (now - 10) < refresh_decoded.exp
|
||||
|
||||
def __decode(self, token: str) -> DecodedJWT:
|
||||
data = jwt.decode(token, options={"verify_signature": False})
|
||||
data = jwt.decode(token, options={"verify_signature": False}) # type: ignore
|
||||
return TypeAdapter(DecodedJWT).validate_python(data)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user