from .utils import any_type class FastNodeBypasser: """ A node that allows quick bypassing of connected nodes. Connect any nodes to this bypasser, and it will create toggle controls for each. Alternatively, use the 'matchTitle' property to automatically match nodes by title pattern. """ @classmethod def INPUT_TYPES(s): return { "required": {}, "optional": {}, } @classmethod def VALIDATE_INPUTS(s, **kwargs): return True RETURN_TYPES = () FUNCTION = "bypass_nodes" CATEGORY = "moonpack/utils" OUTPUT_NODE = False # This is a virtual node - it doesn't do any actual processing # All the logic is handled on the frontend (JavaScript) def bypass_nodes(self, **kwargs): """ This node is a passthrough/virtual node. The actual bypassing logic is handled in the JavaScript frontend. """ # Return empty tuple as this is a control node with no outputs return () NODE_CLASS_MAPPINGS = { "FastNodeBypasser": FastNodeBypasser } NODE_DISPLAY_NAME_MAPPINGS = { "FastNodeBypasser": "Fast Node Bypasser" }