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

(cherry picked from commit 327fc1c6fa)

Co-authored-by: Clément Robert <cr52@protonmail.com>
This commit is contained in:
Miss Islington (bot) 2022-10-22 04:36:01 -07:00 committed by GitHub
parent c835b97c5f
commit 3cd39e9399
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,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::