From d5e7493b6a859906a13535bfb6fabee9eb9e027e Mon Sep 17 00:00:00 2001 From: Peter Fackeldey Date: Thu, 19 Dec 2024 14:50:11 -0500 Subject: [PATCH] fix hash of HashableDict (#3355) --- src/awkward/_categorical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/awkward/_categorical.py b/src/awkward/_categorical.py index 36318c04d8..ade1f74235 100644 --- a/src/awkward/_categorical.py +++ b/src/awkward/_categorical.py @@ -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