Skip to content

Commit 871294b

Browse files
committed
Ignore incorrect type checking error
1 parent 6d99670 commit 871294b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dandi/support/digests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def md5file_nocache(filepath: str | Path) -> str:
142142
filepath = Path(filepath)
143143

144144
if filepath.stat().st_size > ZARR_LARGE_CHUNK_THRESHOLD:
145-
return get_dandietag(filepath).as_str()
145+
# For some reason the type checker treats this return as an Any type
146+
return get_dandietag(filepath).as_str() # type: ignore [no-any-return]
146147

147148
return Digester(["md5"])(filepath)["md5"]
148149

0 commit comments

Comments
 (0)