mirror of https://github.com/python/cpython
[Enum docs]: fix order of arguments to isinstance() (#98542)
This commit is contained in:
parent
8d574234d4
commit
327fc1c6fa
|
@ -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::
|
||||
|
|
Loading…
Reference in New Issue