From 4c12f23a153db1c8684a5840ae12b436c104fa15 Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 7 Sep 2026 18:18:15 -0400 Subject: [PATCH] refactor(clew): type path finder predicate --- src/clew/clew.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)