bpo-43957: [Enum] deprecate ``TypeError`` from containment checks by ethanfurman · Pull Request #25670 · python/cpython
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.
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.
I'm not sure what the actual bug number for this is, but it isn't 42957.
(Note that even if you rename the issue, if there's only one commit then the "merge" button will default to that commit message rather than taking the bug number from the title.)
ethanfurman
changed the title
bpo-42957: [Enum] deprecate
bpo-43957: [Enum] deprecate TypeError from containment checksTypeError from containment checks