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

ethanfurman webhook-mailer at python.org
Tue Aug 22 10:34:23 EDT 2023


https://github.com/python/cpython/commit/e8ef0bdd8c613a722bf7965bf1da912882141a52
commit: e8ef0bdd8c613a722bf7965bf1da912882141a52
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: ethanfurman <ethan at stoneleaf.us>
date: 2023-08-22T07:34:18-07:00
summary:

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

files:
M Doc/library/enum.rst

diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index e9c4f0e2c5f59..7653865f0b9b3 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -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
 



More information about the Python-checkins mailing list