Skip to content
Snippets Groups Projects
Unverified Commit 327fc1c6 authored by Clément Robert's avatar Clément Robert Committed by GitHub
Browse files

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

parent 8d574234
Branches
Tags
No related merge requests found
......@@ -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::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment