From c4ad3da5c63abb506833303564bd53e200ee8d97 Mon Sep 17 00:00:00 2001 From: Dmitrii Agibov Date: Fri, 16 Sep 2022 13:34:35 +0100 Subject: Make python syntax consistent across codebase - Use pyupgrade tool for the syntax upgrade Change-Id: I3b9ae6cc5da193329e37028cde967ae049388361 --- src/mlia/utils/filesystem.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mlia/utils') 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) -- cgit v1.2.1