We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cee7b5 commit 5602620Copy full SHA for 5602620
Lib/enum.py
@@ -779,10 +779,7 @@ def __contains__(cls, value):
779
cls(value)
780
return True
781
except ValueError:
782
- return (
783
- value in cls._unhashable_values_ # both structures are lists
784
- or value in cls._hashable_values_
785
- )
+ return value in cls._unhashable_values_
786
787
def __delattr__(cls, attr):
788
# nicer error message when someone tries to delete an attribute
0 commit comments