We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5655c2f commit 61ee2eaCopy full SHA for 61ee2ea
python/egglog/declarations.py
@@ -570,11 +570,15 @@ def _cached_hash(self) -> int:
570
return hash((self.callable, self.args, self.bound_tp_params))
571
572
def __eq__(self, other: object) -> bool:
573
+ # Override eq to use cached hash for perf
574
if not isinstance(other, CallDecl):
575
return False
576
+ if hash(self) != hash(other):
577
+ return False
578
return self.callable == other.callable and self.args == other.args and self.bound_tp_params == other.bound_tp_params
579
580
581
+
582
@dataclass(frozen=True)
583
class PartialCallDecl:
584
"""
0 commit comments