Merge "Add __ne__ built-in function"
This commit is contained in:
@@ -42,6 +42,9 @@ class BaseDataModel(object):
|
||||
return self.to_dict() == other.to_dict()
|
||||
return False
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, dict):
|
||||
return cls(**dict)
|
||||
|
||||
Reference in New Issue
Block a user