8000 docs: Fix enum reassign `str` documentation (GH-101507) · python/cpython@24cbc7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 24cbc7a

Browse files
authored
docs: Fix enum reassign str documentation (GH-101507)
1 parent 0675b8f commit 24cbc7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/enum.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,6 @@ Notes
922922

923923
or you can reassign the appropriate :meth:`str`, etc., in your enum::
924924

925-
>>> from enum import IntEnum
925+
>>> from enum import Enum, IntEnum
926926
>>> class MyIntEnum(IntEnum):
927-
... __str__ = IntEnum.__str__
927+
... __str__ = Enum.__str__

0 commit comments

Comments
 (0)
0