mirror of https://github.com/pypa/pip
Return not implmented if class differs
This commit is contained in:
parent
92ca536279
commit
030e2b8c0e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue