mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Clean up mypy flags (#6308)
* Remove --strict-optional: This has been the default since mypy 0.600. * Remove --disallow-subclassing-any: When we subclass Any in typeshed, we do so deliberately. This just causes us to add unncessary ignores.
This commit is contained in:
@@ -202,12 +202,10 @@ def get_mypy_flags(args, major: int, minor: int, temp_name: str, *, custom_types
|
||||
"%d.%d" % (major, minor),
|
||||
"--config-file",
|
||||
temp_name,
|
||||
"--strict-optional",
|
||||
"--no-site-packages",
|
||||
"--show-traceback",
|
||||
"--no-implicit-optional",
|
||||
"--disallow-any-generics",
|
||||
"--disallow-subclassing-any",
|
||||
"--warn-incomplete-stub",
|
||||
"--no-error-summary",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user