[Enum docs]: fix order of arguments to isinstance() (#98542)

This commit is contained in:
Clément Robert 2022-10-22 13:29:00 +02:00 committed by GitHub
parent 8d574234d4
commit 327fc1c6fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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::