From 2af67d88747fb7dbe61d191e6772182c25a96f5d Mon Sep 17 00:00:00 2001 From: hetima <33700+hetima@users.noreply.github.com> Date: Sat, 14 Mar 2026 12:20:51 +0900 Subject: [PATCH] output any_type --- single_line_picker.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/single_line_picker.py b/single_line_picker.py index 557e46a..9d26870 100644 --- a/single_line_picker.py +++ b/single_line_picker.py @@ -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"