Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add node type hint for socketless option (#7714)

filtered5d51794607d7
diff --git a/comfy/comfy_types/node_typing.py b/comfy/comfy_types/node_typing.py
index 42ed5174e..a348791a9 100644
--- a/comfy/comfy_types/node_typing.py
+++ b/comfy/comfy_types/node_typing.py
@@ -115,6 +115,11 @@ class InputTypeOptions(TypedDict):
"""When a link exists, rather than receiving the evaluated value, you will receive the link (i.e. `["nodeId", <outputIndex>]`). Designed for node expansion."""
tooltip: NotRequired[str]
"""Tooltip for the input (or widget), shown on pointer hover"""
+ socketless: NotRequired[bool]
+ """All inputs (including widgets) have an input socket to connect links. When ``true``, if there is a widget for this input, no socket will be created.
+ Available from frontend v1.17.5
+ Ref: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3548
+ """
# class InputTypeNumber(InputTypeOptions):
# default: float | int
min: NotRequired[float]