Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,12 @@ Data Types
>>> some_var = Color.RED
>>> some_var in Color
True
>>> Color.RED.value in Color
True

.. note::
.. versionchanged:: 3.12

In Python 3.12 it will be possible to check for member values and not
just members; until then, a ``TypeError`` will be raised if a
Before Python 3.12, a ``TypeError`` is raised if a
non-Enum-member is used in a containment check.

.. method:: EnumType.__dir__(cls)
Expand Down