Return not implmented if class differs

This commit is contained in:
Cristina Muñoz 2020-06-03 09:52:56 -07:00
parent 92ca536279
commit 030e2b8c0e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class FormatControl(object):
def __eq__(self, other):
# type: (object) -> bool
if not isinstance(other, self.__class__):
return False
return NotImplemented
if self.__slots__ != other.__slots__:
return False