diff --git a/pytato/array.py b/pytato/array.py index 25ffc525e56136e155b51d7a46c7ac423e846ef3..8fe6ea49e03fdf216d960dd91282eb65d79716b8 100644 --- a/pytato/array.py +++ b/pytato/array.py @@ -815,6 +815,13 @@ class DictOfNamedArrays(AbstractResultWithNamedArrays): def __iter__(self) -> Iterator[str]: return iter(self._data) + def __eq__(self, other: Any) -> bool: + if self is other: + return True + + return (isinstance(other, DictOfNamedArrays) + and self._data == other._data) + # }}}