From 5c0564a47fe8f6301f27cd8ef60b67db363433f7 Mon Sep 17 00:00:00 2001 From: Ken Brazier Date: Mon, 17 Nov 2025 15:44:13 -0700 Subject: [PATCH] Allow SomethingToString to accept a string --- nodes/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/nodes.py b/nodes/nodes.py index afc793f..755aec9 100644 --- a/nodes/nodes.py +++ b/nodes/nodes.py @@ -669,7 +669,7 @@ Converts any type to a string. """ def stringify(self, input, prefix="", suffix=""): - if isinstance(input, (int, float, bool)): + if isinstance(input, (int, float, bool, str)): stringified = str(input) elif isinstance(input, list): stringified = ', '.join(str(item) for item in input) @@ -2622,4 +2622,4 @@ class LazySwitchKJ: def switch(self, switch, on_false = None, on_true=None): value = on_true if switch else on_false - return (value,) \ No newline at end of file + return (value,)