We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7f0293 commit 66a63b9Copy full SHA for 66a63b9
1 file changed
symengine/tests/test_pickling.py
@@ -22,8 +22,15 @@ def __eq__(self, other):
22
return False
23
return self.name == other.name and self.attr == other.attr
24
25
+ def __ne__(self, other):
26
+ return not (self == other)
27
+
28
+ def __hash__(self, other):
29
+ return hash((self.__class__.__name__, self.name, self.attr))
30
31
32
class MySymbol(MySymbolBase):
33
34
def __reduce__(self):
35
return (self.__class__, (self.name, self.attr))
36
0 commit comments