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:
Sebastian Rittau
2021-11-16 13:58:53 +01:00
committed by GitHub
parent aa7e277adb
commit edf82e8094

View File

@@ -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",
]