gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260)

This commit is contained in:
Nikita Sobolev 2023-08-22 17:34:18 +03:00 committed by GitHub
parent 6541fe4ad7
commit e8ef0bdd8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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