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
{{ message }}
Repository navigation
Turn --disallow-any-generics on when checking stubs with mypy #3267
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).
Activity
gvanrossum commentedon Sep 26, 2019
+1, assuming we don't have to fix 100s of places...
srittau commentedon Sep 26, 2019
More strictness is a good thing for typeshed, in my opinion.
ilevkivskyi commentedon Sep 27, 2019
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.
gvanrossum commentedon Sep 27, 2019
ilevkivskyi commentedon Sep 28, 2019
This is a good idea. @srittau what do you think about splitting the work, will you have time/energy? Also maybe @JelleZijlstra ?
srittau commentedon Sep 28, 2019
Good idea indeed. I'll look into it tomorrow.
Fix third_party errors with --disallow-any-generics
Fix some errors with --disallow-any-generics (#3276)
Fix third_party errors with --disallow-any-generics (#3278)