mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-12 22:47:04 +08:00
fix type error when using Python 3.8
This commit is contained in:
parent
1dac1c089b
commit
17084ca045
@ -7,9 +7,7 @@ from collections.abc import Collection
|
|||||||
|
|
||||||
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.bin', '.pth', '.safetensors', '.pkl', '.sft'}
|
||||||
|
|
||||||
SupportedFileExtensionsType = set[str]
|
folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {}
|
||||||
ScanPathType = list[str]
|
|
||||||
folder_names_and_paths: dict[str, tuple[ScanPathType, SupportedFileExtensionsType]] = {}
|
|
||||||
|
|
||||||
base_path = os.path.dirname(os.path.realpath(__file__))
|
base_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
models_dir = os.path.join(base_path, "models")
|
models_dir = os.path.join(base_path, "models")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user