add optional to type

This commit is contained in:
bymyself 2025-04-15 18:06:36 -07:00 committed by Robin Huang
parent 5327cc8bbb
commit bdbde1a3c2

View File

@ -229,7 +229,7 @@ class ComfyNodeABC(ABC):
"""Flags a node as experimental, informing users that it may change or not work as expected.""" """Flags a node as experimental, informing users that it may change or not work as expected."""
DEPRECATED: bool DEPRECATED: bool
"""Flags a node as deprecated, indicating to users that they should find alternatives to this node.""" """Flags a node as deprecated, indicating to users that they should find alternatives to this node."""
API_NODE: bool API_NODE: Optional[bool]
"""Flags a node as an API node.""" """Flags a node as an API node."""
@classmethod @classmethod