Skip to content

Commit 9a6ef43

Browse files
fix mypy type error
1 parent 4abe0a1 commit 9a6ef43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codeflash/code_utils/edit_generated_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ def unique_inv_id(inv_id_runtimes: dict[InvocationId, list[int]], tests_project_
158158
else inv_id.test_function_name
159159
)
160160
abs_path = tests_project_rootdir / Path(inv_id.test_module_path.replace(".", os.sep)).with_suffix(".py")
161-
abs_path = str(abs_path.resolve().with_suffix(""))
162-
if "__unit_test_" not in abs_path:
161+
abs_path_str = str(abs_path.resolve())
162+
if "__unit_test_" not in abs_path_str:
163163
continue
164-
key = test_qualified_name + "#" + abs_path # type: ignore[operator]
164+
key = test_qualified_name + "#" + abs_path_str
165165
parts = inv_id.iteration_id.split("_").__len__() # type: ignore[union-attr]
166166
cur_invid = inv_id.iteration_id.split("_")[0] if parts < 3 else "_".join(inv_id.iteration_id.split("_")[:-1]) # type: ignore[union-attr]
167167
match_key = key + "#" + cur_invid

0 commit comments

Comments
 (0)