Skip to content

Commit

Permalink
gh-92120: The docstring of enum.Enum is invalid in reST (GH-92122)
Browse files Browse the repository at this point in the history
Closes #92120
  • Loading branch information
tk0miya committed Dec 8, 2022
1 parent dc8a868 commit 90d5c9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Lib/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix reStructuredText syntax errors in docstrings in the :mod:`enum` module.

0 comments on commit 90d5c9b

Please sign in to comment.