Add node type hint for socketless option

This commit is contained in:
filtered 2025-04-22 05:10:56 +10:00
parent ce22f687cc
commit 3eb49f4810

View File

@ -115,6 +115,8 @@ 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.""" """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: NotRequired[str]
"""Tooltip for the input (or widget), shown on pointer hover""" """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."""
# class InputTypeNumber(InputTypeOptions): # class InputTypeNumber(InputTypeOptions):
# default: float | int # default: float | int
min: NotRequired[float] min: NotRequired[float]