From 08f5c773594671606d8f51656b0881d36f4b5f11 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Thu, 2 Feb 2023 12:40:30 -0800 Subject: docs: Fix enum reassign `str` documentation (GH-101507) (cherry picked from commit 24cbc7a2a09bf22ff8122c1d50135e1c56622c95) Co-authored-by: Peter Gessler --- Doc/library/enum.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index b58f3db..1973578 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -914,6 +914,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__ -- cgit v0.12