output any_type

This commit is contained in:
hetima
2026-03-14 12:20:51 +09:00
parent d70b8b3dcb
commit 2af67d8874
+9 -2
View File
@@ -1,4 +1,11 @@
class AnyType(str):
"""A special class that is always equal in not equal comparisons. Credit to pythongosssss"""
def __ne__(self, __value: object) -> bool:
return False
any_type = AnyType("*")
class SLPSingleLinePicker:
NAME = "HetimaSingleLinePicker"
@@ -20,8 +27,8 @@ class SLPSingleLinePicker:
},
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("STRING",)
RETURN_TYPES = (any_type,)
RETURN_NAMES = ("selection",)
OUTPUT_TOOLTIPS = ("text content of selected line",)
OUTPUT_NODE = True
FUNCTION = "executed"