summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorClément Robert <cr52@protonmail.com>2022-10-22 11:29:00 (GMT)
committerGitHub <noreply@github.com>2022-10-22 11:29:00 (GMT)
commit327fc1c6fa11b007213287cbf46380b7afed9be3 (patch)
tree71995a942296ed9d53ed32fddcb15895292ae622 /Doc/library
parent8d574234d49acf3472f7151ee4296da0f297d6f2 (diff)
downloadcpython-327fc1c6fa11b007213287cbf46380b7afed9be3.zip
cpython-327fc1c6fa11b007213287cbf46380b7afed9be3.tar.gz
cpython-327fc1c6fa11b007213287cbf46380b7afed9be3.tar.bz2
[Enum docs]: fix order of arguments to isinstance() (#98542)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/enum.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst
index 1f317b9..dcced28 100644
--- a/Doc/library/enum.rst
+++ b/Doc/library/enum.rst
@@ -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::