From 55a8b8d2678397de4570f8be060ca0af3490c477 Mon Sep 17 00:00:00 2001 From: RyanOnTheInside <7623207+ryanontheinside@users.noreply.github.com> Date: Sat, 26 Apr 2025 10:27:53 -0400 Subject: [PATCH] always equal proxy --- src/utils/general.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/utils/general.py diff --git a/src/utils/general.py b/src/utils/general.py new file mode 100644 index 0000000..e911761 --- /dev/null +++ b/src/utils/general.py @@ -0,0 +1,13 @@ +""" +General utilities for ComfyUI RealTimeNodes. +""" + +class AlwaysEqualProxy(str): + """Helper class to allow connecting multiple specific input types to a single input node. + Originally borrowed from https://github.com/theUpsider/ComfyUI-Logic + """ + def __eq__(self, _): + return True + + def __ne__(self, _): + return False \ No newline at end of file