Skip to content

Fix indentation in enum.rst #114231

@miyashiiii

Description

@miyashiiii

Documentation

There is an indentation error in enum.rst (the second line of the description for "SECOND").

   * ``FIRST = auto()`` will work (auto() is replaced with ``1``);
   * ``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` is
      used to create the ``SECOND`` enum member;
   * ``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to
     create the ``THREE`` enum member)

https://github.com/python/cpython/blob/v3.13.0a3/Doc/library/enum.rst?plain=1#L839-L843

In reStructuredText, the space after a line break within a list item should be two spaces.

* This is a bulleted list.
* It has two items, the second
  item uses two lines.

https://devguide.python.org/documentation/markup/#lists-and-quotes

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc direasy

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions