From 977b23afa12b8f6d6510f6e57e35eea8f78f8a94 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Thu, 8 Jan 2026 10:30:03 +0100 Subject: [PATCH 1/2] Update pathspec to 1.0.0 Closes: #15224 --- requirements-tests.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-tests.txt b/requirements-tests.txt index 624dfc298bf6..39574706ebaf 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -10,7 +10,7 @@ aiohttp==3.13.3 grpcio-tools>=1.66.2; python_version < "3.14" # For grpc_tools.protoc mypy-protobuf==4.0.0 packaging==25.0 -pathspec>=0.11.1,<1.0.0 +pathspec>=1.0.0 pre-commit # Required by create_baseline_stubs.py. Must match .pre-commit-config.yaml. ruff==0.14.10 From d679f336af56c174cc1cea1be62ce3e4cc5016e8 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Thu, 8 Jan 2026 10:37:23 +0100 Subject: [PATCH 2/2] Add a pyright:ignore --- lib/ts_utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ts_utils/utils.py b/lib/ts_utils/utils.py index 94936cd92057..2e4b06a7fa3e 100644 --- a/lib/ts_utils/utils.py +++ b/lib/ts_utils/utils.py @@ -233,7 +233,7 @@ def close(self: TemporaryFileWrapper[str]) -> None: @functools.cache def get_gitignore_spec() -> pathspec.PathSpec: with GITIGNORE_PATH.open(encoding="UTF-8") as f: - return pathspec.GitIgnoreSpec.from_lines(f) + return pathspec.GitIgnoreSpec.from_lines(f) # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType] def spec_matches_path(spec: pathspec.PathSpec, path: Path) -> bool: