GH-111182: Update EnumType.__contains__ docs (GH-111184)

This commit is contained in:
InSync 2023-10-25 00:30:13 +07:00 • committed by GitHub
parent 46407fe79c
commit c0ea67dd0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)