mirror of https://github.com/python/cpython.git
[3.11] gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260) (#108300)
(cherry picked from commit e8ef0bdd8c
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
3ca9264aba
commit
9d7f2705b5
|
@ -247,6 +247,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…
Reference in New Issue