mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
chore: use str as return type in calculate_sha256
This commit is contained in:
+1
-1
@@ -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)
|
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()
|
hash_sha256 = sha256()
|
||||||
blksize = 1024 * 1024
|
blksize = 1024 * 1024
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user