From 77defc93302681a7d6cfda434c01dcfbe452be70 Mon Sep 17 00:00:00 2001 From: pfackeldey Date: Thu, 19 Dec 2024 13:56:09 -0500 Subject: [PATCH] fix hash of HashableDict --- 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