1 parent e463578 commit e9cb214Copy full SHA for e9cb214
1 file changed
quadint/quad.py
@@ -334,6 +334,9 @@ def __eq__(self, other: object) -> bool:
334
return self.ring.D == other.ring.D and self.ring.den == other.ring.den \
335
and self.a == other.a and self.b == other.b
336
337
+ def __ne__(self, other: object) -> bool:
338
+ return not self.__eq__(other)
339
+
340
def __hash__(self) -> int:
341
return hash((self.a, self.b, self.ring.D))
342
0 commit comments