Skip to content

Commit 614f8ef

Browse files
committed
fixup! Docs: Move Enum functions and add examples
1 parent 4b25a5f commit 614f8ef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/library/enum.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,10 +878,6 @@ Once all the members are created it is no longer used.
878878
Supported ``_sunder_`` names
879879
""""""""""""""""""""""""""""
880880

881-
- :meth:`~Enum._add_alias_` -- adds a new name as an alias to an existing
882-
member.
883-
- :meth:`~Enum._add_value_alias_` -- adds a new value as an alias to an
884-
existing member.
885881
- :attr:`~Enum._name_` -- name of the member
886882
- :attr:`~Enum._value_` -- value of the member; can be set in ``__new__``
887883
- :meth:`~Enum._missing_` -- a lookup function used when a value is not found;
@@ -902,6 +898,11 @@ Supported ``_sunder_`` names
902898
For :class:`Flag` classes the next value chosen will be the next highest
903899
power-of-two.
904900

901+
- :meth:`~Enum._add_alias_` -- adds a new name as an alias to an existing
902+
member.
903+
- :meth:`~Enum._add_value_alias_` -- adds a new value as an alias to an
904+
existing member.
905+
905906
- While ``_sunder_`` names are generally reserved for the further development
906907
of the :class:`Enum` class and can not be used, some are explicitly allowed:
907908

0 commit comments

Comments
 (0)