更改出参为ANY类型

This commit is contained in:
liuqianhonga
2024-12-22 00:40:57 +08:00
parent 9d17ab0209
commit 535cb30ff5
+2 -1
View File
@@ -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"