diff options
author | Peter Gessler <gesslerpd@users.noreply.github.com> | 2023-02-02 20:12:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 20:12:57 (GMT) |
commit | 24cbc7a2a09bf22ff8122c1d50135e1c56622c95 (patch) | |
tree | 9101aa1dd63c0e48cba44920dbf4fe0a0b76541e | |
parent | 0675b8f032c69d265468b31d5cadac6a7ce4bd9c (diff) | |
download | cpython-24cbc7a2a09bf22ff8122c1d50135e1c56622c95.zip cpython-24cbc7a2a09bf22ff8122c1d50135e1c56622c95.tar.gz cpython-24cbc7a2a09bf22ff8122c1d50135e1c56622c95.tar.bz2 |
docs: Fix enum reassign `str` documentation (GH-101507)
-rw-r--r-- | Doc/library/enum.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index cfe4fbe..13591a1 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -922,6 +922,6 @@ Notes or you can reassign the appropriate :meth:`str`, etc., in your enum:: - >>> from enum import IntEnum + >>> from enum import Enum, IntEnum >>> class MyIntEnum(IntEnum): - ... __str__ = IntEnum.__str__ + ... __str__ = Enum.__str__ |