Allow SomethingToString to accept a string

This commit is contained in:
Ken Brazier 2025-11-17 15:44:13 -07:00
parent c661baadd9
commit 5c0564a47f

View File

@ -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,)
return (value,)