]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43957: [Enum] Deprecate ``TypeError`` from containment checks. (GH-25670)
authorEthan Furman <ethan@stoneleaf.us>
Tue, 27 Apr 2021 20:05:08 +0000 (13:05 -0700)
committerGitHub <noreply@github.com>
Tue, 27 Apr 2021 20:05:08 +0000 (13:05 -0700)
commit6bd9288b805c765ec2433f66aa4d82e05767325f
tree5810c0de5a0086fec858ccf222cf1d42d459ba96
parent9aea31deddf7458be3546f72185740f3cd06687f
bpo-43957: [Enum] Deprecate ``TypeError`` from containment checks. (GH-25670)

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.
Doc/library/enum.rst
Lib/enum.py
Lib/test/test_enum.py
Lib/test/test_signal.py
Misc/NEWS.d/next/Library/2021-04-27-12-13-51.bpo-43957.6EaPD-.rst [new file with mode: 0644]