From 02159fc154d746712b3eb571cf3bbbefb2aaa858 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Fri, 21 Nov 2025 21:58:28 -0800 Subject: [PATCH] Change MatchType to have template be the first and only required param; output id's do nothing right now, so no need --- comfy_api/latest/_io.py | 2 +- comfy_extras/nodes_logic.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_api/latest/_io.py b/comfy_api/latest/_io.py index 22c1df1b3..0ff38edc9 100644 --- a/comfy_api/latest/_io.py +++ b/comfy_api/latest/_io.py @@ -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 diff --git a/comfy_extras/nodes_logic.py b/comfy_extras/nodes_logic.py index 10b3af7a6..84eed34f9 100644 --- a/comfy_extras/nodes_logic.py +++ b/comfy_extras/nodes_logic.py @@ -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"), ], )