From 17084ca0454e15ca4a1a5d6f98bf7e31cce974a6 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 7 Aug 2024 00:09:31 +0200 Subject: [PATCH] fix type error when using Python 3.8 --- folder_paths.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/folder_paths.py b/folder_paths.py index 223aabb7c..3db1da61a 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -7,9 +7,7 @@ from collections.abc import Collection supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.bin', '.pth', '.safetensors', '.pkl', '.sft'} -SupportedFileExtensionsType = set[str] -ScanPathType = list[str] -folder_names_and_paths: dict[str, tuple[ScanPathType, SupportedFileExtensionsType]] = {} +folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {} base_path = os.path.dirname(os.path.realpath(__file__)) models_dir = os.path.join(base_path, "models")