From d52cc377366f9133f986b5edbaa32d895915fb54 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 31 Mar 2021 09:43:35 +0100 Subject: [PATCH] Fixed regression in 2fb09d254d935fcf4386f585934dcc06900bcb40. --- soapfish/xsd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/soapfish/xsd.py b/soapfish/xsd.py index b019782..76d1529 100644 --- a/soapfish/xsd.py +++ b/soapfish/xsd.py @@ -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 @@ -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): """