Skip to content

Commit 4b25a5f

Browse files
committed
Docs: Move versionadded for EnumType
This change moves the `versionadded` for `EnumType` to the top. Additionally, it fixes the indentation of another `versionchanged` entry.
1 parent 35d0d48 commit 4b25a5f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/enum.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ Data Types
175175
final *enum*, as well as creating the enum members, properly handling
176176
duplicates, providing iteration over the enum class, etc.
177177

178+
.. versionadded:: 3.11
179+
180+
Before 3.11 ``EnumType`` was called ``EnumMeta``, which is still available as an alias.
181+
178182
.. method:: EnumType.__call__(cls, value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
179183

180184
This method is called in two different ways:
@@ -206,7 +210,7 @@ Data Types
206210
>>> Color.RED.value in Color
207211
True
208212

209-
.. versionchanged:: 3.12
213+
.. versionchanged:: 3.12
210214

211215
Before Python 3.12, a ``TypeError`` is raised if a
212216
non-Enum-member is used in a containment check.
@@ -251,10 +255,6 @@ Data Types
251255
>>> list(reversed(Color))
252256
[<Color.BLUE: 3>, <Color.GREEN: 2>, <Color.RED: 1>]
253257

254-
.. versionadded:: 3.11
255-
256-
Before 3.11 ``EnumType`` was called ``EnumMeta``, which is still available as an alias.
257-
258258

259259
.. class:: Enum
260260

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy