diff options
author | Zack Kneupper <zachary.kneupper@gmail.com> | 2021-08-31 09:39:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 15:39:19 +0200 |
commit | 08767c73b5bf1f28792d5fef7f41d52822a4989f (patch) | |
tree | 100db9f79bab525346d67cbddfc99dc78c4197d2 /Doc/library/functions.rst | |
parent | 01dea5f12b31862999217c091399a318f23b460a (diff) | |
download | cpython-git-08767c73b5bf1f28792d5fef7f41d52822a4989f.tar.gz |
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com>
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 652e30c608..fef6c6292f 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -916,9 +916,9 @@ are always available. They are listed here in alphabetical order. Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual <abstract base class>`) of *classinfo*. A class is considered a subclass of itself. *classinfo* may be a tuple of class - objects or a :ref:`types-union`, in which case every entry in *classinfo* - will be checked. In any other - case, a :exc:`TypeError` exception is raised. + objects or a :ref:`types-union`, in which case return True if *class* is a + subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError` + exception is raised. .. versionchanged:: 3.10 *classinfo* can be a :ref:`types-union`. |