Skip to content

Commit 5602620

Browse files
committed
remove ref to unknown attributes
1 parent 6cee7b5 commit 5602620

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Lib/enum.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,7 @@ def __contains__(cls, value):
779779
cls(value)
780780
return True
781781
except ValueError:
782-
return (
783-
value in cls._unhashable_values_ # both structures are lists
784-
or value in cls._hashable_values_
785-
)
782+
return value in cls._unhashable_values_
786783

787784
def __delattr__(cls, attr):
788785
# nicer error message when someone tries to delete an attribute

0 commit comments

Comments
 (0)