Skip to content

Commit 553c90c

Browse files
gh-101100: Fix sphinx warnings in library/enum.rst (#114696)
Co-authored-by: Ethan Furman <[email protected]>
1 parent 5914a21 commit 553c90c

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Doc/library/enum.rst

+15-2
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,19 @@ Data Types
286286
appropriate value will be chosen for you. See :class:`auto` for the
287287
details.
288288

289+
.. attribute:: Enum._name_
290+
291+
Name of the member.
292+
293+
.. attribute:: Enum._value_
294+
295+
Value of the member, can be set in :meth:`~object.__new__`.
296+
297+
.. attribute:: Enum._order_
298+
299+
No longer used, kept for backward compatibility.
300+
(class attribute, removed during class creation).
301+
289302
.. attribute:: Enum._ignore_
290303

291304
``_ignore_`` is only used during creation and is removed from the
@@ -823,8 +836,8 @@ Supported ``_sunder_`` names
823836
- :attr:`~Enum._ignore_` -- a list of names, either as a :class:`list` or a
824837
:class:`str`, that will not be transformed into members, and will be removed
825838
from the final class
826-
- :attr:`~Enum._order_` -- used in Python 2/3 code to ensure member order is
827-
consistent (class attribute, removed during class creation)
839+
- :attr:`~Enum._order_` -- no longer used, kept for backward
840+
compatibility (class attribute, removed during class creation)
828841
- :meth:`~Enum._generate_next_value_` -- used to get an appropriate value for
829842
an enum member; may be overridden
830843

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Doc/library/email.compat32-message.rst
3131
Doc/library/email.errors.rst
3232
Doc/library/email.parser.rst
3333
Doc/library/email.policy.rst
34-
Doc/library/enum.rst
3534
Doc/library/exceptions.rst
3635
Doc/library/faulthandler.rst
3736
Doc/library/fcntl.rst

0 commit comments

Comments
 (0)