mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-107700: [Enum] Document that EnumType
was added in 3.11 (GH-108260)
This commit is contained in:
parent
6541fe4ad7
commit
e8ef0bdd8c
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