Skip to content

Commit 223eb8d

Browse files
authored
[3.14] Use EnumType instead of EnumMeta in enum's examples (GH-163060) (#163093)
(cherry picked from commit 94e7d73)
1 parent 0a1a050 commit 223eb8d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎Doc/reference/datamodel.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,8 +3144,8 @@ behaviour. An example of this can be found in the :mod:`enum` module::
31443144
...
31453145
>>> # Enum classes have a custom metaclass:
31463146
>>> type(Menu)
3147-
<class 'enum.EnumMeta'>
3148-
>>> # EnumMeta defines __getitem__,
3147+
<class 'enum.EnumType'>
3148+
>>> # EnumType defines __getitem__,
31493149
>>> # so __class_getitem__ is not called,
31503150
>>> # and the result is not a GenericAlias object:
31513151
>>> Menu['SPAM']

‎Misc/ACKS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,6 +2120,7 @@ Alakshendra Yadav
21202120
Hirokazu Yamamoto
21212121
Masayuki Yamamoto
21222122
Zhikang Yan
2123+
Ali Ömer Yasan
21232124
Jingchen Ye
21242125
Ka-Ping Yee
21252126
Chi Hsuan Yen

0 commit comments

Comments
 (0)