We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1445c38 commit c3e2ec2Copy full SHA for c3e2ec2
codeflash/discovery/discover_unit_tests.py
@@ -158,9 +158,9 @@ def get_function_to_test_map_for_file(
158
return result
159
160
@staticmethod
161
- def compute_file_hash(path: str | Path) -> str:
+ def compute_file_hash(path: Path) -> str:
162
h = hashlib.sha256(usedforsecurity=False)
163
- with open(path, "rb", buffering=0) as f:
+ with path.open("rb", buffering=0) as f:
164
buf = bytearray(8192)
165
mv = memoryview(buf)
166
while True:
0 commit comments