From edf82e809470bd2021d3dcb3eb3ee2f63b15b60d Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Tue, 16 Nov 2021 13:58:53 +0100 Subject: [PATCH] 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. --- tests/mypy_test.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/mypy_test.py b/tests/mypy_test.py index f1e5d6efa..1c2959ed0 100755 --- a/tests/mypy_test.py +++ b/tests/mypy_test.py @@ -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", ]