We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8917013 commit 70dcf91Copy full SHA for 70dcf91
1 file changed
src/notebook/math/polynomials/monomial.py
@@ -77,7 +77,7 @@ def __str__(self) -> Iterable[str]:
77
yield to_superscript(str(power))
78
79
def __hash__(self) -> int:
80
- return hash(tuple(self._payload.items()))
+ return hash(tuple(dict(self).items()))
81
82
83
x = Monomial({ ci.x: 1 })
0 commit comments