-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Turn --disallow-any-generics on when checking stubs with mypy #3267
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
+1, assuming we don't have to fix 100s of places... |
More strictness is a good thing for typeshed, in my opinion. |
I actually just tried this and it causes around 400 errors. On one hand this is not too many to do this in general, on other hand it is probably too many to do this right now. |
Could we incrementally fix those errors? Even if some more of the same type
of errors appear it would be less work to fix the final batch.
Possibly we could add `# mypy: disallow-any-generics` to files that have
been fixed (or create a mypy.ini file with sections for subdirectories
we've fixed).
|
This is a good idea. @srittau what do you think about splitting the work, will you have time/energy? Also maybe @JelleZijlstra ? |
Good idea indeed. I'll look into it tomorrow. |
Part of python#3267. Together with python#3276 this should fix all such problems.
See #3267. Covers all of stdlib/2and3.
I have noticed several people recently forgot to specify type arguments. Should we try enforcing this?
The text was updated successfully, but these errors were encountered: