aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/utils/filesystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlia/utils/filesystem.py')
-rw-r--r--src/mlia/utils/filesystem.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mlia/utils/filesystem.py b/src/mlia/utils/filesystem.py
index 25619c5..fcd09b5 100644
--- a/src/mlia/utils/filesystem.py
+++ b/src/mlia/utils/filesystem.py
@@ -97,7 +97,9 @@ def file_chunks(
yield data
-def hexdigest(filepath: str | Path, hash_obj: "hashlib._Hash") -> str:
+def hexdigest(
+ filepath: str | Path, hash_obj: hashlib._Hash # pylint: disable=no-member
+) -> str:
"""Return hex digest of the file."""
for chunk in file_chunks(filepath):
hash_obj.update(chunk)