You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Activity
hugovk commentedon Jan 18, 2024
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?
miyashiiii commentedon Jan 18, 2024
@hugovk
Thank you for the prompt response. Yes, I am currently in the process of creating a PR.
gh-114231: Fix indentation in enum.rst (#114232)
pythongh-114231: Fix indentation in enum.rst (pythonGH-114232)
pythongh-114231: Fix indentation in enum.rst (pythonGH-114232)
[3.12] gh-114231: Fix indentation in enum.rst (GH-114232) (#114234)
[3.11] gh-114231: Fix indentation in enum.rst (GH-114232) (#114235)
pythongh-114231: Fix indentation in enum.rst (python#114232)
pythongh-114231: Fix indentation in enum.rst (python#114232)
pythongh-114231: Fix indentation in enum.rst (python#114232)