devices: fix 'NotImplemented' usage
'__eq__' function should return 'NotImplemented' _value_, not 'NotImplementedError' exception.
This commit is contained in:
parent
4f0d72f99a
commit
7ef020d5fe
@ -75,7 +75,7 @@ class DeviceAssignment(object): # pylint: disable=too-few-public-methods
|
||||
|
||||
def __eq__(self, other):
|
||||
if not isinstance(self, other.__class__):
|
||||
raise NotImplementedError
|
||||
return NotImplemented
|
||||
|
||||
return self.backend_domain == other.backend_domain \
|
||||
and self.ident == other.ident
|
||||
|
Loading…
Reference in New Issue
Block a user