]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 22 Aug 2023 18:33:26 +0000 (11:33 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2023 18:33:26 +0000 (20:33 +0200)
(cherry picked from commit e8ef0bdd8c613a722bf7965bf1da912882141a52)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/library/enum.rst

index 15b8e2918d754437026f9d1fa4c5787178661b9e..85da33156b1e385de0d12505dc2a38fd980e17c0 100644 (file)
@@ -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