-
-
Notifications
You must be signed in to change notification settings - Fork 385
kw_only
doesn't work with mypy
#473
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
Comments
Hmm. This feature definitely didn't exist when I wrote the plugin. Maybe I'll have time over the break to work on this. |
From my understanding it makes mypy unusable with attrs right now, or is there a workaround that doesn't require too much code? |
Sadly, for now the only way around it is to |
This should be a bug on the mypy tracker no? |
@euresti
It seems that attrs stub in typeshed is missing
UPDATE: it seems it is already fixed in the typeshed. I didn't notice, sorry |
Fixed here: |
Use mypy on following file:
It gives following errors:
If I understand correctly, mypy doesn't consider the existence of a new
kw_only=True
.The text was updated successfully, but these errors were encountered: