Change MatchType to have template be the first and only required param; output id's do nothing right now, so no need

This commit is contained in:
Jedrzej Kosinski 2025-11-21 21:58:28 -08:00
parent a25d736437
commit 02159fc154
2 changed files with 2 additions and 2 deletions

View File

@ -1033,7 +1033,7 @@ class MatchType(ComfyTypeIO):
})
class Output(Output):
def __init__(self, id: str, template: MatchType.Template, display_name: str=None, tooltip: str=None,
def __init__(self, template: MatchType.Template, id: str=None, display_name: str=None, tooltip: str=None,
is_output_list=False):
super().__init__(id, display_name, tooltip, is_output_list)
self.template = template

View File

@ -19,7 +19,7 @@ class SwitchNode(io.ComfyNode):
io.MatchType.Input("on_true", template=template, lazy=True),
],
outputs=[
io.MatchType.Output("output", template=template, display_name="output"),
io.MatchType.Output(template=template, display_name="output"),
],
)