The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix(V3-Schema): use empty list defaults for Schema.inputs/outputs/hidden to avoid None issues (#11083)
Alexander Piskun19f2192d69d1
diff --git a/comfy_api/latest/_io.py b/comfy_api/latest/_io.pyindex 257f07c42..866c3e0eb 100644--- a/comfy_api/latest/_io.py+++ b/comfy_api/latest/_io.py@@ -5,7 +5,7 @@ import inspectfrom abc import ABC, abstractmethodfrom collections import Counterfrom collections.abc import Iterable-from dataclasses import asdict, dataclass+from dataclasses import asdict, dataclass, fieldfrom enum import Enumfrom typing import Any, Callable, Literal, TypedDict, TypeVar, TYPE_CHECKINGfrom typing_extensions import NotRequired, final@@ -1199,9 +1199,9 @@ class Schema:"""Display name of node."""category: str = "sd""""The category of the node, as per the "Add Node" menu."""- inputs: list[Input]=None- outputs: list[Output]=None- hidden: list[Hidden]=None+ inputs: list[Input] = field(default_factory=list)+ outputs: list[Output] = field(default_factory=list)+ hidden: list[Hidden] = field(default_factory=list)description: str="""""Node description, shown as a tooltip when hovering over the node."""is_input_list: bool = False