mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[3.12] gh-107700: [Enum] Document that EnumType was added in 3.11 (GH-108260) (#108301)
(cherry picked from commit e8ef0bdd8c)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
68fd6db981
commit
1dbf11814f
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue