Skip to content

Commit b424891

Browse files
Merge origin/main into fix-loopnest
2 parents c25c866 + 3829d69 commit b424891

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ build-backend = "maturin"
66
name = "egglog"
77
description = "e-graphs in Python built around the the egglog rust library"
88
readme = "README.md"
9+
dynamic = ["version"]
910
license = { text = "MIT" }
1011
requires-python = ">=3.10"
1112
classifiers = [

python/egglog/declarations.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,13 @@ def __eq__(self, other: object) -> bool:
588588
# Override eq to use cached hash for perf
589589
if not isinstance(other, CallDecl):
590590
return False
591-
return hash(self) == hash(other)
591+
if hash(self) != hash(other):
592+
return False
593+
return (
594+
self.callable == other.callable
595+
and self.args == other.args
596+
and self.bound_tp_params == other.bound_tp_params
597+
)
592598

593599

594600
@dataclass(frozen=True)

0 commit comments

Comments
 (0)