Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use list instead of set
  • Loading branch information
sebastien-rosset committed Apr 15, 2020
commit bad077997f95f4feb8587d9f442dab25bfffe458
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ def to_str(self):
"""Returns the string representation of the model"""
return str(self.value)

def __hash__(self):
"""Returns the hash value of this object."""
return hash(self._data_store['value'])

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, self.__class__):
Expand Down Expand Up @@ -208,10 +204,6 @@ def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())

def __hash__(self):
"""Returns the hash value of this object."""
return hash(frozenset(self._data_store.items()))

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, self.__class__):
Expand Down Expand Up @@ -313,10 +305,6 @@ def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())

def __hash__(self):
"""Returns the hash value of this object."""
return hash(frozenset(self._data_store.items()))

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, self.__class__):
Expand Down