From 327fc1c6fa11b007213287cbf46380b7afed9be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sat, 22 Oct 2022 13:29:00 +0200 Subject: [PATCH] [Enum docs]: fix order of arguments to isinstance() (#98542) --- Doc/library/enum.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 1f317b9013d8db..dcced28b8508e8 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::