Skip to content

Commit 70dcf91

Browse files
committed
Fix bad monomial hashes
1 parent 8917013 commit 70dcf91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/notebook/math/polynomials/monomial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __str__(self) -> Iterable[str]:
7777
yield to_superscript(str(power))
7878

7979
def __hash__(self) -> int:
80-
return hash(tuple(self._payload.items()))
80+
return hash(tuple(dict(self).items()))
8181

8282

8383
x = Monomial({ ci.x: 1 })

0 commit comments

Comments
 (0)