Skip to content
Snippets Groups Projects
Unverified Commit 180243e3 authored by Matt Smith's avatar Matt Smith Committed by GitHub
Browse files

Misc. fixes from concatenation (#512)

parent 5e22a98f
No related branches found
No related tags found
No related merge requests found
Pipeline #568704 passed
......@@ -614,6 +614,8 @@ class Array(Taggable):
def __eq__(self, other: Any) -> bool:
if self is other:
return True
if not isinstance(other, Array):
return False
from pytato.equality import EqualityComparer
return EqualityComparer()(self, other)
......@@ -911,6 +913,8 @@ class AbstractResultWithNamedArrays(Mapping[str, NamedArray], Taggable, ABC):
def __eq__(self, other: Any) -> bool:
if self is other:
return True
if not isinstance(other, AbstractResultWithNamedArrays):
return False
from pytato.equality import EqualityComparer
return EqualityComparer()(self, other)
......
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