diff --git a/__init__.py b/__init__.py index 7482f13..4b02cbd 100644 --- a/__init__.py +++ b/__init__.py @@ -5,13 +5,17 @@ A collection of essential custom nodes for ComfyUI from .nodes.text_processing import NODE_CLASS_MAPPINGS as TEXT_NODES from .nodes.text_processing import NODE_DISPLAY_NAME_MAPPINGS as TEXT_DISPLAY_NAMES +from .nodes.utilities import UTILITY_NODE_CLASS_MAPPINGS as UTILITY_NODES +from .nodes.utilities import UTILITY_NODE_DISPLAY_NAME_MAPPINGS as UTILITY_DISPLAY_NAMES # Combine all node mappings NODE_CLASS_MAPPINGS = {} NODE_CLASS_MAPPINGS.update(TEXT_NODES) +NODE_CLASS_MAPPINGS.update(UTILITY_NODES) NODE_DISPLAY_NAME_MAPPINGS = {} NODE_DISPLAY_NAME_MAPPINGS.update(TEXT_DISPLAY_NAMES) +NODE_DISPLAY_NAME_MAPPINGS.update(UTILITY_DISPLAY_NAMES) __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] diff --git a/__pycache__/__init__.cpython-312.pyc b/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..3133cda Binary files /dev/null and b/__pycache__/__init__.cpython-312.pyc differ diff --git a/nodes/__pycache__/__init__.cpython-312.pyc b/nodes/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..212a314 Binary files /dev/null and b/nodes/__pycache__/__init__.cpython-312.pyc differ diff --git a/nodes/__pycache__/text_processing.cpython-312.pyc b/nodes/__pycache__/text_processing.cpython-312.pyc new file mode 100644 index 0000000..b85dad8 Binary files /dev/null and b/nodes/__pycache__/text_processing.cpython-312.pyc differ diff --git a/nodes/__pycache__/utilities.cpython-312.pyc b/nodes/__pycache__/utilities.cpython-312.pyc new file mode 100644 index 0000000..18bfdd6 Binary files /dev/null and b/nodes/__pycache__/utilities.cpython-312.pyc differ diff --git a/nodes/utilities.py b/nodes/utilities.py index 2af8a90..4e14512 100644 --- a/nodes/utilities.py +++ b/nodes/utilities.py @@ -12,7 +12,8 @@ class DebugPrint: def INPUT_TYPES(cls): return { "required": { - "value": ("*",), + # Specify common types explicitly instead of using wildcard + "value": ("STRING", {"forceInput": True}), }, "optional": { "label": ("STRING", { @@ -22,7 +23,8 @@ class DebugPrint: } } - RETURN_TYPES = ("*",) + # Match the input type exactly + RETURN_TYPES = ("STRING",) RETURN_NAMES = ("passthrough",) FUNCTION = "debug_print" @@ -39,7 +41,7 @@ class DebugPrint: Returns: The same value (passthrough) """ - print(f"[{label}] {type(value).__name__}: {value}") + print(f"[{label}] {value}") return (value,)