Skip to content

Fix indentation in enum.rst #114231

Closed
Closed

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

Activity

  1. added
    docs
    on Jan 18, 2024
  2. hugovk commented on Jan 18, 2024

    @hugovk
    Member

    For reference, it's here: https://docs.python.org/3/library/enum.html#utilities-and-decorators

    Thanks for the report, would you like to open a PR to fix it?

  3. miyashiiii commented on Jan 18, 2024

    @miyashiiii
    ContributorAuthor

    @hugovk
    Thank you for the prompt response. Yes, I am currently in the process of creating a PR.

  4. added a commit that references this issue on Jan 18, 2024
  5. added 2 commits that reference this issue on Jan 18, 2024
  6. added 2 commits that reference this issue on Jan 18, 2024
  7. added a commit that references this issue on Jan 22, 2024
  8. added a commit that references this issue on Feb 11, 2024
  9. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docseasy

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions