Skip to content

Commit

Permalink
[Enum docs]: fix order of arguments to isinstance() (#98542)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Oct 22, 2022
1 parent 8d57423 commit 327fc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/enum.rst
Expand Up @@ -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::
Expand Down

0 comments on commit 327fc1c

Please sign in to comment.