docs: Fix enum reassign `str` documentation (GH-101507)

This commit is contained in:
Peter Gessler 2023-02-02 14:12:57 -06:00 committed by GitHub
parent 0675b8f032
commit 24cbc7a2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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__