From 9f864da225d4a628dc618f0f94c03e52ed17b1bd Mon Sep 17 00:00:00 2001 From: Bingsu Date: Tue, 16 May 2023 20:26:27 +0900 Subject: [PATCH] fix: sd_webui shared OptionInfo --- sd_webui/shared.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sd_webui/shared.py b/sd_webui/shared.py index 96cc596..914a058 100644 --- a/sd_webui/shared.py +++ b/sd_webui/shared.py @@ -9,13 +9,13 @@ if TYPE_CHECKING: @dataclass class OptionInfo: - default: Any - label: str - component: Any - component_args: dict[str, Any] - onchange: Callable[[], None] - section: tuple[str, str] - refresh: Callable[[], None] + default: Any = None + label: str = "" + component: Any = None + component_args: dict[str, Any] | None = None + onchange: Callable[[], None] | None = None + section: tuple[str, str] | None = None + refresh: Callable[[], None] | None = None class Option: data_labels: dict[str, OptionInfo]