Skip to content

Commit 1035a50

Browse files
committed
made AxisCollection.__eq__ less restrictive
1 parent a86d502 commit 1035a50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

larray/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ def __eq__(self, other):
730730
other collection compares equal if all axes compare equal and in the
731731
same order. Works with a list.
732732
"""
733-
if isinstance(other, AxisCollection):
734-
other = other._list
733+
if not isinstance(other, list):
734+
other = list(other)
735735
return self._list == other
736736

737737
def __contains__(self, key):

0 commit comments

Comments
 (0)