Skip to content

Commit c3e2ec2

Browse files
committed
it's a pathy objectey
1 parent 1445c38 commit c3e2ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ def get_function_to_test_map_for_file(
158158
return result
159159

160160
@staticmethod
161-
def compute_file_hash(path: str | Path) -> str:
161+
def compute_file_hash(path: Path) -> str:
162162
h = hashlib.sha256(usedforsecurity=False)
163-
with open(path, "rb", buffering=0) as f:
163+
with path.open("rb", buffering=0) as f:
164164
buf = bytearray(8192)
165165
mv = memoryview(buf)
166166
while True:

0 commit comments

Comments
 (0)