-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DISC: enable disallow_any_generics for mypy in setup.cfg? #30539
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
Labels
CI
Continuous Integration
Needs Discussion
Requires discussion from core team before further action
Typing
type annotations, mypy/pyright type checking
Comments
expand to see current list
|
This was referenced Dec 31, 2019
5 tasks
3 tasks
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CI
Continuous Integration
Needs Discussion
Requires discussion from core team before further action
Typing
type annotations, mypy/pyright type checking
This flag disallows usage of generic types that do not specify explicit type parameters. Moreover, built-in collections (such as list and dict) become disallowed as you should use their aliases from the typing module (such as List[int] and Dict[str, str]).
Enabling this would address common pull request review comments. @WillAyd
The text was updated successfully, but these errors were encountered: