Skip to content

Commit

Permalink
fix hash of HashableDict (#3355)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey authored Dec 19, 2024
1 parent fb245f1 commit d5e7493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/awkward/_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class HashableDict:
def __init__(self, obj):
self.keys = tuple(sorted(obj))
self.values = tuple(as_hashable(obj[k]) for k in self.keys)
self.hash = hash((HashableDict, *self.keys), self.values)
self.hash = hash((HashableDict, self.keys, self.values))

def __hash__(self):
return self.hash
Expand Down

0 comments on commit d5e7493

Please sign in to comment.