feat: type hints

This commit is contained in:
Bingsu
2023-05-16 17:22:24 +09:00
parent f0ad1473e3
commit 62e77a55b2
9 changed files with 395 additions and 0 deletions

14
sd_webui/paths.py Normal file
View File

@@ -0,0 +1,14 @@
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
import os
models_path = os.path.join(os.path.dirname(__file__), "1")
script_path = os.path.join(os.path.dirname(__file__), "2")
data_path = os.path.join(os.path.dirname(__file__), "3")
extensions_dir = os.path.join(os.path.dirname(__file__), "4")
extensions_builtin_dir = os.path.join(os.path.dirname(__file__), "5")
else:
from modules.paths import *