8000 Minor documentation fixes on library/enum (GH-15234) · python/cpython@d3c8d73 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3c8d73

Browse files
awecxethanfurman
authored andcommitted
Minor documentation fixes on library/enum (GH-15234)
* Minor documentation fixes on library/enum
1 parent d13968b commit d3c8d73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/library/enum.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ enumeration, with the exception of special methods (:meth:`__str__`,
383383
variable names listed in :attr:`_ignore_`.
384384

385385
Note: if your enumeration defines :meth:`__new__` and/or :meth:`__init__` then
386-
whatever value(s) were given to the enum member will be passed into those
387-
methods. See `Planet`_ for an example.
386+
any value(s) given to the enum member will be passed into those methods.
387+
See `Planet`_ for an example.
388388

389389

390390
Restricted Enum subclassing
@@ -730,8 +730,7 @@ Some rules:
730730
2. While :class:`Enum` can have members of any type, once you mix in an
731731
additional type, all the members must have values of that type, e.g.
732732
:class:`int` above. This restriction does not apply to mix-ins which only
733-
add methods and don't specify another data type such as :class:`int` or
734-
:class:`str`.
733+
add methods and don't specify another type.
735734
3. When another data type is mixed in, the :attr:`value` attribute is *not the
736735
same* as the enum member itself, although it is equivalent and will compare
737736
equal.
@@ -1054,7 +1053,7 @@ Supported ``_sunder_`` names
10541053

10551054
- ``_missing_`` -- a lookup function used when a value is not found; may be
10561055
overridden
1057-
- ``_ignore_`` -- a list of names, either as a :func:`list` or a :func:`str`,
1056+
- ``_ignore_`` -- a list of names, either as a :class:`list` or a :class:`str`,
10581057
that will not be transformed into members, and will be removed from the final
10591058
class
10601059
- ``_order_`` -- used in Python 2/3 code to ensure member order is consistent

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,7 @@ Steve Weber
17711771
Corran Webster
17721772
Glyn Webster
17731773
Phil Webster
1774+
Antoine Wecxsteen
17741775
Stefan Wehr
17751776
Zack Weinberg
17761777
Bob Weiner

0 commit comments

Comments
 (0)
0