Skip to content

Commit

Permalink
Fixed regression in 2fb09d2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngnpope committed Mar 31, 2021
1 parent 3e3a7ec commit d52cc37
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions soapfish/xsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def empty_value(self):
return None


class TypedList(list):
class TypedList(list): # lgtm [py/missing-equals]
def __init__(self, element):
super().__init__()
self._list = element
Expand All @@ -765,11 +765,6 @@ def append(self, value):
raise ValueError(f'You must not add more than {self._list._maxOccurs} items to this list.')
super().append(accepted_value)

def __eq__(self, other):
if not isinstance(other, TypedList):
return False
return self._list == other._list and super().__eq__(other)


class ListElement(Element):
"""
Expand Down

0 comments on commit d52cc37

Please sign in to comment.