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 c107e7b commit 52e85e9Copy full SHA for 52e85e9
python/egglog/declarations.py
@@ -570,10 +570,9 @@ 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):
+ if not isinstance(other, egglog.declarations.CallDecl):
575
return False
576
- return hash(self) == hash(other)
+ return self.callable == other.callable and self.args == other.args and self.bound_tp_params == other.bound_tp_params
577
578
579
@dataclass(frozen=True)
0 commit comments