From 23ba05015af2cfe5f9efea7058ba88d592f62f99 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Fri, 2 Feb 2024 01:10:26 +0100 Subject: [PATCH] chore: use str as return type in calculate_sha256 --- modules/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util.py b/modules/util.py index 663e7975..d1935848 100644 --- a/modules/util.py +++ b/modules/util.py @@ -182,7 +182,7 @@ def get_files_from_folder(folder_path, exensions=None, name_filter=None): return sorted(filenames, key=lambda x: -1 if os.sep in x else 1) -def calculate_sha256(filename, length=HASH_SHA256_LENGTH): +def calculate_sha256(filename, length=HASH_SHA256_LENGTH) -> str: hash_sha256 = sha256() blksize = 1024 * 1024