]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[Enum docs]: fix order of arguments to isinstance() (#98542)
authorClément Robert <cr52@protonmail.com>
Sat, 22 Oct 2022 11:29:00 +0000 (13:29 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Oct 2022 11:29:00 +0000 (12:29 +0100)
Doc/library/enum.rst

index 1f317b9013d8db59af427a13ec052ec48f0fd0ac..dcced28b8508e847851b515f9401927fcb4cd770 100644 (file)
@@ -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::