mirror of https://github.com/python/cpython
gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260)
This commit is contained in:
parent
6541fe4ad7
commit
e8ef0bdd8c
|
@ -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…
Reference in New Issue