diff --git a/src/clew/clew.py b/src/clew/clew.py index e7d276a..2fbbbea 100644 --- a/src/clew/clew.py +++ b/src/clew/clew.py @@ -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)