From 074926567217f4de6690f1e4e0de8d10d7e33089 Mon Sep 17 00:00:00 2001 From: ljleb Date: Thu, 17 Aug 2023 17:02:17 -0400 Subject: [PATCH] fix return type (#146) --- comfyui_custom_nodes/webui_io.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/comfyui_custom_nodes/webui_io.py b/comfyui_custom_nodes/webui_io.py index 3ac10e2..a48d75b 100644 --- a/comfyui_custom_nodes/webui_io.py +++ b/comfyui_custom_nodes/webui_io.py @@ -1,6 +1,19 @@ from lib_comfyui import global_state +class AnyType(str): + def __ne__(self, _) -> bool: + return False + + +class AnyReturnTypes(tuple): + def __init__(self): + super().__init__() + + def __getitem__(self, _): + return AnyType() + + class FromWebui: @classmethod def INPUT_TYPES(cls): @@ -9,7 +22,7 @@ def INPUT_TYPES(cls): "void": ("VOID", ), }, } - RETURN_TYPES = () + RETURN_TYPES = AnyReturnTypes() RETURN_NAMES = () FUNCTION = "get_node_inputs"