Skip to content
Snippets Groups Projects
Commit 8424d7d7 authored by Daniel Bauer's avatar Daniel Bauer :speech_balloon:
Browse files

add type check to CustomCodeNode.__eq__

parent 4d762ec4
Branches
Tags
No related merge requests found
......@@ -152,7 +152,7 @@ class CustomCodeNode(Node):
return self._symbols_read - self._symbols_defined
def __eq__(self, other):
return self._code == other._code
return type(self) == type(other) and self._code == other._code
def __hash__(self):
return hash(self._code)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment