From 2bea0ee5d75961b5027e2edd20f785bd5a0e33dd Mon Sep 17 00:00:00 2001 From: xmarre Date: Sat, 14 Mar 2026 12:42:04 +0100 Subject: [PATCH] Simplify Unhashable sentinel implementation --- comfy_execution/caching.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/comfy_execution/caching.py b/comfy_execution/caching.py index 19480165e..cbf2e9de1 100644 --- a/comfy_execution/caching.py +++ b/comfy_execution/caching.py @@ -56,10 +56,8 @@ class CacheKeySet(ABC): return self.subcache_keys.get(node_id, None) class Unhashable: - """Hashable sentinel for values that cannot be represented safely in cache keys.""" - def __init__(self): - """Initialize a sentinel that stays hashable while never comparing equal.""" - self.value = float("NaN") + """Hashable identity sentinel for values that cannot be represented safely in cache keys.""" + pass def _sanitized_sort_key(obj, depth=0, max_depth=32):