mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +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:
1 parent
aa7e277adb
commit
edf82e8094
1 file changed
-2
@@ -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