From: Clément Robert Date: Sat, 22 Oct 2022 11:29:00 +0000 (+0200) Subject: [Enum docs]: fix order of arguments to isinstance() (#98542) X-Git-Tag: v3.12.0a1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=327fc1c6fa11b007213287cbf46380b7afed9be3;p=thirdparty%2FPython%2Fcpython.git [Enum docs]: fix order of arguments to isinstance() (#98542) --- diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 1f317b9013d8..dcced28b8508 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -427,7 +427,7 @@ Data Types .. note:: There are places in the stdlib that check for an exact :class:`str` instead of a :class:`str` subclass (i.e. ``type(unknown) == str`` - instead of ``isinstance(str, unknown)``), and in those locations you + instead of ``isinstance(unknown, str)``), and in those locations you will need to use ``str(StrEnum.member)``. .. note::