Skip to content

Commit 3cd39e9

Browse files
[Enum docs]: fix order of arguments to isinstance() (GH-98542)
(cherry picked from commit 327fc1c) Co-authored-by: Clément Robert <[email protected]>
1 parent c835b97 commit 3cd39e9

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
@@ -434,7 +434,7 @@ Data Types
434434

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

440440
.. note::

0 commit comments

Comments
 (0)