Skip to content
Snippets Groups Projects
Commit a2cf0e8a authored by Alexandru Fikl's avatar Alexandru Fikl Committed by Andreas Klöckner
Browse files

fix type comparison

parent 6e9c0a49
No related branches found
No related tags found
No related merge requests found
Pipeline #460838 failed
......@@ -576,7 +576,7 @@ class Expression(ABC):
# {{{ hash/equality backend
def is_equal(self, other):
return (type(other) == type(self)
return (type(other) is type(self)
and self.__getinitargs__() == other.__getinitargs__())
def get_hash(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment