Skip to content

Commit cdc956b

Browse files
cdce8phauntsaninjaAlexWaygood
authored
Ignore typeshed test files (#17249)
During the last typehed update, we included the `@tests` folder which is unnecessary for mypy. Update the `sync-typeshed.py` script to exclude it in the future. Refs: - #17246 - python/typeshed#11762 --------- Co-authored-by: Shantanu <[email protected]> Co-authored-by: AlexWaygood <[email protected]>
1 parent 0a2225b commit cdc956b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3
-2172
lines changed

misc/sync-typeshed.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def update_typeshed(typeshed_dir: str, commit: str | None) -> str:
5151
# Remove existing stubs.
5252
shutil.rmtree(stdlib_dir)
5353
# Copy new stdlib stubs.
54-
shutil.copytree(os.path.join(typeshed_dir, "stdlib"), stdlib_dir)
54+
shutil.copytree(
55+
os.path.join(typeshed_dir, "stdlib"), stdlib_dir, ignore=shutil.ignore_patterns("@tests")
56+
)
5557
shutil.copy(os.path.join(typeshed_dir, "LICENSE"), os.path.join("mypy", "typeshed"))
5658
return commit
5759

mypy/typeshed/stdlib/@tests/test_cases/asyncio/check_coroutines.py

-25
This file was deleted.

mypy/typeshed/stdlib/@tests/test_cases/asyncio/check_gather.py

-38
This file was deleted.

mypy/typeshed/stdlib/@tests/test_cases/asyncio/check_task.py

-28
This file was deleted.

mypy/typeshed/stdlib/@tests/test_cases/builtins/check_dict-py39.py

-67
This file was deleted.

mypy/typeshed/stdlib/@tests/test_cases/builtins/check_dict.py

-58
This file was deleted.

0 commit comments

Comments
 (0)