chore: use str as return type in calculate_sha256

This commit is contained in:
Manuel Schmid 2024-02-02 01:10:26 +01:00
parent 6b9c0bd448
commit 23ba05015a
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 1 deletions

View File

@ -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