Skip to content

bpo-43957: [Enum] deprecate TypeError from containment checks#25670

Merged
ethanfurman merged 1 commit intopython:masterfrom
ethanfurman:enum-contains
Apr 27, 2021
Merged

bpo-43957: [Enum] deprecate TypeError from containment checks#25670
ethanfurman merged 1 commit intopython:masterfrom
ethanfurman:enum-contains

Conversation

@ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Apr 27, 2021

In 3.12 True or False will be returned for all containment checks,
with True being returned if the value is either a member of that enum
or one of its members' value.

https://bugs.python.org/issue42957

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants