Skip to content

Commit

Permalink
pythongh-107700: [Enum] Document that EnumType was added in 3.11 (p…
Browse files Browse the repository at this point in the history
…ythonGH-108260)

(cherry picked from commit e8ef0bd)

Co-authored-by: Nikita Sobolev <[email protected]>
  • Loading branch information
sobolevn authored and miss-islington committed Aug 22, 2023
1 parent 68fd6db commit 4f25bb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ Data Types
>>> list(reversed(Color))
[<Color.BLUE: 3>, <Color.GREEN: 2>, <Color.RED: 1>]

.. versionadded:: 3.11

Before 3.11 ``enum`` used ``EnumMeta`` type, which is kept as an alias.


.. class:: Enum

Expand Down

0 comments on commit 4f25bb4

Please sign in to comment.