diff --git a/tests/stubtest_stdlib.py b/tests/stubtest_stdlib.py index ac794eb4bacd..3c3a89e933f8 100755 --- a/tests/stubtest_stdlib.py +++ b/tests/stubtest_stdlib.py @@ -28,6 +28,7 @@ def run_stubtest(typeshed_dir: Path) -> int: "mypy.stubtest", "--check-typeshed", "--show-traceback", + "--strict-type-check-only", "--custom-typeshed-dir", str(typeshed_dir), *allowlist_stubtest_arguments("stdlib"), diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index bb69d1232ce8..70bb8d0c182a 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -109,6 +109,7 @@ def run_stubtest(dist: Path, *, verbose: bool = False, ci_platforms_only: bool = "--mypy-config-file", temp.name, "--show-traceback", + "--strict-type-check-only", # Use --custom-typeshed-dir in case we make linked changes to stdlib or _typeshed "--custom-typeshed-dir", str(dist.parent.parent),