Skip to content

Commit

Permalink
Merge pull request #8 from earthpyy/hotfix/eliminate-dup
Browse files Browse the repository at this point in the history
Check only value and label
  • Loading branch information
earthpyy authored Nov 9, 2021
2 parents 4f057ae + 5ac6b69 commit ae3157e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dropdown/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, value: typing.Optional[typing.Any], label: str = None, contex
self.context = context or {}

def __eq__(self, o: object) -> bool:
return self.value == o.value and self.label == o.label and self.context == self.context
return self.value == o.value and self.label == o.label

def __hash__(self) -> int:
return hash((self.value, self.label, self.context))
return hash((self.value, self.label))

0 comments on commit ae3157e

Please sign in to comment.