summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-31 14:23:22 (GMT)
committerGitHub <noreply@github.com>2021-08-31 14:23:22 (GMT)
commitab8fed88fc602282167f6459b43f2cf0c771f60a (patch)
treeb8146d57e692605b8b4099146290179792019b91
parent1d0c5596142eeb35fea172c3642e23aeca128f5d (diff)
downloadcpython-ab8fed88fc602282167f6459b43f2cf0c771f60a.zip
cpython-ab8fed88fc602282167f6459b43f2cf0c771f60a.tar.gz
cpython-ab8fed88fc602282167f6459b43f2cf0c771f60a.tar.bz2
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com> (cherry picked from commit 08767c73b5bf1f28792d5fef7f41d52822a4989f) Co-authored-by: Zack Kneupper <zachary.kneupper@gmail.com>
-rw-r--r--Doc/library/functions.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 652e30c..fef6c62 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`.