Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion comfy_api/latest/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def as_dict(self):
})

@comfytype(io_type="COMBO")
class Combo(ComfyTypeI):
class Combo(ComfyTypeIO):
Type = str
class Input(WidgetInput):
"""Combo input (dropdown)."""
Expand Down Expand Up @@ -360,6 +360,14 @@ def as_dict(self):
"remote": self.remote.as_dict() if self.remote else None,
})

class Output(Output):
def __init__(self, id: str=None, display_name: str=None, options: list[str]=None, tooltip: str=None, is_output_list=False):
super().__init__(id, display_name, tooltip, is_output_list)
self.options = options if options is not None else []

@property
def io_type(self):
return self.options

@comfytype(io_type="COMBO")
class MultiCombo(ComfyTypeI):
Expand Down
Loading