summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-08-22 14:34:18 (GMT)
committerGitHub <noreply@github.com>2023-08-22 14:34:18 (GMT)
commite8ef0bdd8c613a722bf7965bf1da912882141a52 (patch)
treebfad3bb5d5399d7f66ca0ff36c768e3011f5895d
parent6541fe4ad7b96ab96ee5c596b60814a93346dd27 (diff)
downloadcpython-e8ef0bdd8c613a722bf7965bf1da912882141a52.zip
cpython-e8ef0bdd8c613a722bf7965bf1da912882141a52.tar.gz
cpython-e8ef0bdd8c613a722bf7965bf1da912882141a52.tar.bz2
gh-107700: [Enum] Document that `EnumType` was added in 3.11 (GH-108260)
-rw-r--r--Doc/library/enum.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index e9c4f0e..7653865 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