refactor(clew): type path finder predicate

This commit is contained in:
2026-09-07 18:18:15 -04:00
parent cac4fac77f
commit 4c12f23a15

View File

@@ -7,6 +7,7 @@ import shutil
import subprocess
import sys
from collections import deque
from collections.abc import Callable
from pathlib import Path
from rpycdec.rpa import extract_rpa
@@ -84,7 +85,7 @@ def extract_game_files(game_root: Path, output_path: Path) -> None:
shutil.copy2(item, destination)
def find(root: Path, predicate) -> list[Path]:
def find(root: Path, predicate: Callable[[Path], bool]) -> list[Path]:
matches = []
for current, _directories, files in os.walk(root):
current_path = Path(current)