aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/utils
diff options
context:
space:
mode:
authorDmitrii Agibov <dmitrii.agibov@arm.com>2022-09-16 13:34:35 +0100
committerDmitrii Agibov <dmitrii.agibov@arm.com>2022-09-20 16:51:58 +0100
commitc4ad3da5c63abb506833303564bd53e200ee8d97 (patch)
tree99d3d8f8cbe6068241dd49e3da80594b85793f26 /src/mlia/utils
parent61684f9a4691449dc8aa129976789e3feab2b713 (diff)
downloadmlia-c4ad3da5c63abb506833303564bd53e200ee8d97.tar.gz
Make python syntax consistent across codebase
- Use pyupgrade tool for the syntax upgrade Change-Id: I3b9ae6cc5da193329e37028cde967ae049388361
Diffstat (limited to 'src/mlia/utils')
-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)