Skip to content

Commit cad0430

Browse files
committed
Address review
1 parent 9df9a98 commit cad0430

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tools/build/compute-changes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
from dataclasses import dataclass
1515
from pathlib import Path
1616

17+
TYPE_CHECKING = False
18+
if False:
19+
from collections.abc import Set # type: ignore[unreachable]
20+
1721
GITHUB_DEFAULT_BRANCH = os.environ["GITHUB_DEFAULT_BRANCH"]
1822
GITHUB_CODEOWNERS_PATH = Path(".github/CODEOWNERS")
1923
GITHUB_WORKFLOWS_PATH = Path(".github/workflows")
@@ -79,7 +83,7 @@ def git_branches() -> tuple[str, str]:
7983

8084
def get_changed_files(
8185
ref_a: str = GITHUB_DEFAULT_BRANCH, ref_b: str = "HEAD"
82-
) -> frozenset[Path]:
86+
) -> Set[Path]:
8387
"""List the files changed between two Git refs, filtered by change type."""
8488
args = ("git", "diff", "--name-only", f"{ref_a}...{ref_b}", "--")
8589
print(*args)
@@ -90,7 +94,7 @@ def get_changed_files(
9094
return frozenset(map(Path, filter(None, map(str.strip, changed_files))))
9195

9296

93-
def process_changed_files(changed_files: frozenset[Path]) -> Outputs:
97+
def process_changed_files(changed_files: Set[Path]) -> Outputs:
9498
run_tests = False
9599
run_ci_fuzz = False
96100
run_docs = False

0 commit comments

Comments
 (0)