From 535cb30ff5b058008a62dac9d64a0dfcb376e323 Mon Sep 17 00:00:00 2001 From: liuqianhonga Date: Sun, 22 Dec 2024 00:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=87=BA=E5=8F=82=E4=B8=BAAN?= =?UTF-8?q?Y=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/string_converter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes/string_converter.py b/nodes/string_converter.py index 9b8df98..311f2a7 100644 --- a/nodes/string_converter.py +++ b/nodes/string_converter.py @@ -1,4 +1,5 @@ import json +from .lib import ANY class StringConverter: """Converts a string to a specified type (INT, FLOAT, BOOL, LIST, DICT)""" @@ -15,7 +16,7 @@ class StringConverter: }, } - RETURN_TYPES = ("*",) + RETURN_TYPES = (ANY,) RETURN_NAMES = ("value",) FUNCTION = "convert" CATEGORY = "String Helper"