diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2021-11-06 17:16:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-06 17:16:43 (GMT) |
commit | cb755dba7a988f92a7d1cad48f3c27df18c9342d (patch) | |
tree | ca07d00c150256be9d63640bb4de6938221022d9 /Doc | |
parent | 815dad42d53fc40a6dc057e067f4a8a885c3b858 (diff) | |
download | cpython-cb755dba7a988f92a7d1cad48f3c27df18c9342d.zip cpython-cb755dba7a988f92a7d1cad48f3c27df18c9342d.tar.gz cpython-cb755dba7a988f92a7d1cad48f3c27df18c9342d.tar.bz2 |
bpo-45740: [Enum] add versionadded markers to docs (GH-29443)
[Enum] add versionadded markers to docs
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/howto/enum.rst | 13 | ||||
-rw-r--r-- | Doc/library/enum.rst | 1 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index d9cfad9..b0b17b1 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -636,7 +636,7 @@ an incorrect member:: Before :class:`StrEnum`, ``Directions.NORTH`` would have been the :class:`tuple` ``('north',)``. -.. versionadded:: 3.10 +.. versionadded:: 3.11 IntFlag @@ -659,7 +659,7 @@ used. details. .. versionadded:: 3.6 -.. versionchanged:: 3.10 +.. versionchanged:: 3.11 Sample :class:`IntFlag` class:: @@ -696,7 +696,7 @@ It is also possible to name the combinations:: Named combinations are considered aliases. Aliases do not show up during iteration, but can be returned from by-value lookups. -.. versionchanged:: 3.10 +.. versionchanged:: 3.11 Another important difference between :class:`IntFlag` and :class:`Enum` is that if no flags are set (the value is 0), its boolean evaluation is :data:`False`:: @@ -728,7 +728,7 @@ be combined with them (but may lose :class:`IntFlag` membership:: >>> list(RW) [Perm.R, Perm.W] -.. versionadded:: 3.10 +.. versionadded:: 3.11 Flag @@ -789,7 +789,7 @@ value:: >>> list(purple) [Color.RED, Color.BLUE] -.. versionadded:: 3.10 +.. versionadded:: 3.11 .. note:: @@ -939,7 +939,7 @@ _Private__names :ref:`Private names <private-name-mangling>` are not converted to enum members, but remain normal attributes. -.. versionchanged:: 3.10 +.. versionchanged:: 3.11 ``Enum`` member type @@ -962,7 +962,6 @@ it will raise a :exc:`DeprecationWarning`:: <FieldTypes.size: 2> .. versionchanged:: 3.5 -.. versionchanged:: 3.10 Creating members that are mixed with other data types diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 86bf705..850b491 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -397,6 +397,7 @@ Data Types Using :class:`auto` with :class:`StrEnum` results in values of the member name, lower-cased. +.. versionadded:: 3.11 .. class:: Flag |