@@ -149,7 +149,7 @@ def qualified_name_with_modules_from_root(self, project_root_path: Path) -> str:
149149
150150def get_functions_to_optimize (
151151 optimize_all : str | None ,
152- replay_test : str | None ,
152+ replay_test : list [ Path ] | None ,
153153 file : Path | None ,
154154 only_get_this_function : str | None ,
155155 test_cfg : TestConfig ,
@@ -168,7 +168,7 @@ def get_functions_to_optimize(
168168 logger .info ("Finding all functions in the module '%s'…" , optimize_all )
169169 console .rule ()
170170 functions = get_all_files_and_functions (Path (optimize_all ))
171- elif replay_test is not None :
171+ elif replay_test :
172172 functions = get_all_replay_test_functions (
173173 replay_test = replay_test , test_cfg = test_cfg , project_root_path = project_root
174174 )
@@ -268,9 +268,9 @@ def find_all_functions_in_file(file_path: Path) -> dict[Path, list[FunctionToOpt
268268
269269
270270def get_all_replay_test_functions (
271- replay_test : Path , test_cfg : TestConfig , project_root_path : Path
271+ replay_test : list [ Path ] , test_cfg : TestConfig , project_root_path : Path
272272) -> dict [Path , list [FunctionToOptimize ]]:
273- function_tests , _ = discover_unit_tests (test_cfg , discover_only_these_tests = [ replay_test ] )
273+ function_tests , _ = discover_unit_tests (test_cfg , discover_only_these_tests = replay_test )
274274 # Get the absolute file paths for each function, excluding class name if present
275275 filtered_valid_functions = defaultdict (list )
276276 file_to_functions_map = defaultdict (list )
0 commit comments