Skip to content

Commit

Permalink
Specify explicit hash_constructor in call to unordered_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 3, 2024
1 parent 913e360 commit 721704a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loopy/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def update_for_dict(self, key_hash, key):
unordered_hash(
key_hash,
(self.rec(self.new_hash(), (k, v)).digest()
for k, v in key.items()))
for k, v in key.items()),
hash_constructor=self.new_hash)

update_for_defaultdict = update_for_dict

Expand Down

0 comments on commit 721704a

Please sign in to comment.