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
When using RefreshToken.for_user(), the static type of Token is returned. This should be improved to return the type of the Token subclass. Mypy is throwing the errors with v5.3.1:
error: "Token" has no attribute "access_token"
Example:
refresh = RefreshToken.for_user(user)
type(refresh) # RefreshToken
reveal_type(refresh) # Token
refresh.access_token # mypy error: "Token" has no attribute "access_token"
The text was updated successfully, but these errors were encountered:
When using
RefreshToken.for_user()
, the static type ofToken
is returned. This should be improved to return the type of theToken
subclass. Mypy is throwing the errors with v5.3.1:error: "Token" has no attribute "access_token"
Example:
The text was updated successfully, but these errors were encountered: