Skip to content

Commit 47b7ca7

Browse files
committed
DOC: fix order of arguements to isinstance in enum docs
1 parent 8d57423 commit 47b7ca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Data Types
427427

428428
.. note:: There are places in the stdlib that check for an exact :class:`str`
429429
instead of a :class:`str` subclass (i.e. ``type(unknown) == str``
430-
instead of ``isinstance(str, unknown)``), and in those locations you
430+
instead of ``isinstance(unknown, str)``), and in those locations you
431431
will need to use ``str(StrEnum.member)``.
432432

433433
.. note::

0 commit comments

Comments
 (0)