We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b06c3e commit e7d286cCopy full SHA for e7d286c
src/power_grid_model_ds/_core/model/arrays/base/array.py
@@ -180,8 +180,10 @@ def __contains__(self: Self, item: Self) -> bool:
180
def __hash__(self: Self):
181
return hash(f"{self.__class__} {self}")
182
183
- def __eq__(self: Self, other):
184
- return self._data.__eq__(other.data)
+ def __eq__(self, other):
+ if not isinstance(other, self.__class__):
185
+ return False
186
+ return self.data.__eq__(other.data)
187
188
def __copy__(self: Self):
189
return self.__class__(data=copy(self._data))
0 commit comments