From 5ac6b696624ddb17079a2d84b1f0015ad41e1caf Mon Sep 17 00:00:00 2001 From: Preeti Yuankrathok Date: Tue, 9 Nov 2021 15:55:29 +0700 Subject: [PATCH] Check only value and label --- dropdown/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropdown/types.py b/dropdown/types.py index e4b9f50..b97d7a1 100644 --- a/dropdown/types.py +++ b/dropdown/types.py @@ -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))