Skip to content

Commit 88df172

Browse files
authored
fix(caching): treat bytes as hashable (#10567)
1 parent 6d6a18b commit 88df172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy_execution/caching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self):
5353
def to_hashable(obj):
5454
# So that we don't infinitely recurse since frozenset and tuples
5555
# are Sequences.
56-
if isinstance(obj, (int, float, str, bool, type(None))):
56+
if isinstance(obj, (int, float, str, bool, bytes, type(None))):
5757
return obj
5858
elif isinstance(obj, Mapping):
5959
return frozenset([(to_hashable(k), to_hashable(v)) for k, v in sorted(obj.items())])

0 commit comments

Comments
 (0)