Skip to content

Commit

Permalink
Make __hash__ None for class Message
Browse files Browse the repository at this point in the history
  • Loading branch information
ttanay committed Mar 11, 2019
1 parent 0ace821 commit ea930a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apitools/base/protorpclite/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,8 @@ class Order(Message):
"""

__hash__ = None

def __init__(self, **kwargs):
"""Initialize internal messages state.
Expand Down Expand Up @@ -1058,10 +1060,6 @@ def __ne__(self, other):
"""
return not self.__eq__(other)

def __hash__(self):
"""Hash by __tags"""
return hash(self.__tags)


class FieldList(list):
"""List implementation that validates field values.
Expand Down

0 comments on commit ea930a3

Please sign in to comment.