Skip to content

Commit edf82e8

Browse files
authored
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.
1 parent aa7e277 commit edf82e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/mypy_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,10 @@ def get_mypy_flags(args, major: int, minor: int, temp_name: str, *, custom_types
202202
"%d.%d" % (major, minor),
203203
"--config-file",
204204
temp_name,
205-
"--strict-optional",
206205
"--no-site-packages",
207206
"--show-traceback",
208207
"--no-implicit-optional",
209208
"--disallow-any-generics",
210-
"--disallow-subclassing-any",
211209
"--warn-incomplete-stub",
212210
"--no-error-summary",
213211
]

0 commit comments

Comments
 (0)