Skip to content
Snippets Groups Projects

Fix type equality checks

Merged Frederik Hennig requested to merge da15siwa/pystencils:fix_type_equality_checks into master
6 files
+ 8
8
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -152,7 +152,7 @@ class CustomCodeNode(Node):
return self._symbols_read - self._symbols_defined
def __eq__(self, other):
return type(self) == type(other) and self._code == other._code
return type(self) is type(other) and self._code == other._code
def __hash__(self):
return hash(self._code)
Loading