-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect typing for refresh token. #821
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let say we have code block like this:
That would produce error in mypy:
Token.for_user
class method returnscls()
which allows subclasses returns it's own instances. But annotations says it would always be a Token.Maybe
typing.Self
would work?The text was updated successfully, but these errors were encountered: