Skip to content

Commit

Permalink
Check only value and label
Browse files Browse the repository at this point in the history
  • Loading branch information
earthpyy committed Nov 9, 2021
1 parent 4f057ae commit 5ac6b69
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 5ac6b69

Please sign in to comment.