summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-12-08 02:24:52 (GMT)
committerGitHub <noreply@github.com>2022-12-08 02:24:52 (GMT)
commit90d5c9b195a8133688c2d7b6ad9e0ca8b76df1df (patch)
treec2423b2e18b058b83f351179359008499ef4fcbc /Lib
parentdc8a86893df37e137cfe992e95e7d66cd68e9eaf (diff)
downloadcpython-90d5c9b195a8133688c2d7b6ad9e0ca8b76df1df.zip
cpython-90d5c9b195a8133688c2d7b6ad9e0ca8b76df1df.tar.gz
cpython-90d5c9b195a8133688c2d7b6ad9e0ca8b76df1df.tar.bz2
gh-92120: The docstring of enum.Enum is invalid in reST (GH-92122)
Closes #92120
Diffstat (limited to 'Lib')
-rw-r--r--Lib/enum.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index f07b821..b2f7b9f 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1054,20 +1054,20 @@ class Enum(metaclass=EnumType):
Access them by:
- - attribute access::
+ - attribute access:
- >>> Color.RED
- <Color.RED: 1>
+ >>> Color.RED
+ <Color.RED: 1>
- value lookup:
- >>> Color(1)
- <Color.RED: 1>
+ >>> Color(1)
+ <Color.RED: 1>
- name lookup:
- >>> Color['RED']
- <Color.RED: 1>
+ >>> Color['RED']
+ <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have: