Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 88df172

Browse files
fix(caching): treat bytes as hashable (comfyanonymous#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)

AltStyle によって変換されたページ (->オリジナル) /