]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 22 Aug 2023 14:34:18 +0000 (17:34 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 14:34:18 +0000 (07:34 -0700)
Doc/library/enum.rst

index e9c4f0e2c5f59b2f495551aa62607678245477cf..7653865f0b9b361490264740b1d38ab0503348ac 100644 (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