From bf17df97f94b573092d4892384e3018d0526e2d1 Mon Sep 17 00:00:00 2001 From: Ali <105012194+aliysnm@users.noreply.github.com> Date: Thu, 3 Dec 2026 08:23:04 +0000 Subject: [PATCH 1/2] Docs: Use EnumType instead of EnumMeta in data model example EnumMeta was renamed to EnumType in Python 3.11 (EnumMeta is kept as an alias), so type(Menu) now shows . Update the __class_getitem__ example output and the accompanying comment. --- Doc/reference/datamodel.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index aa8f6dcdf635e8e..b901dfb5e6e3d61 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -3163,8 +3163,8 @@ behaviour. An example of this can be found in the :mod:`enum` module:: ... >>> # Enum classes have a custom metaclass: >>> type(Menu) - - >>> # EnumMeta defines __getitem__, + + >>> # EnumType defines __getitem__, >>> # so __class_getitem__ is not called, >>> # and the result is not a GenericAlias object: >>> Menu['SPAM'] From bdbd2debabea39418003e9a0c9e2388f4c498143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=C3=96mer=20Yasan?= <105012194+aliysnm@users.noreply.github.com> Date: Thu, 3 Dec 2026 08:51:53 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Add=20Ali=20=C3=96mer=20Yasan=20to=20Misc/A?= =?UTF-8?q?CKS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Misc/ACKS | 1 + 1 file changed, 1 insertion(+) diff --git a/Misc/ACKS b/Misc/ACKS index c3ecfc1e315a595..ae363a6d3d6ddf0 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -2163,6 +2163,7 @@ Alakshendra Yadav Hirokazu Yamamoto Masayuki Yamamoto Zhikang Yan +Ali Ă–mer Yasan Jeffrey Yasskin Jingchen Ye Ka-Ping Yee