8000 Ignore typeshed test files (#17249) · python/mypy@cdc956b · GitHub
[go: up one dir, main page]

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 <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 0 additions & 25 deletions
This file was deleted.

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

Lines changed: 0 additions & 38 deletions
This file was deleted.

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 0 additions & 67 deletions
This file was deleted.

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

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0