Skip to content

Commit

Permalink
Merge branch 'add-__hash__-to-models-opsgenie#38' into current
Browse files Browse the repository at this point in the history
* add-__hash__-to-models-opsgenie#38:
  Define __hash__ for Responders model
  • Loading branch information
asqui committed Feb 3, 2020
2 parents b59b388 + 6377c12 commit 2581eee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opsgenie_sdk/models/responder.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,6 @@ def __eq__(self, other):
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

def __hash__(self):
return hash(self.__dict__)

0 comments on commit 2581eee

Please sign in to comment.