]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 31 Aug 2021 14:23:22 +0000 (07:23 -0700)
committerGitHub <noreply@github.com>
Tue, 31 Aug 2021 14:23:22 +0000 (07:23 -0700)
Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com>
(cherry picked from commit 08767c73b5bf1f28792d5fef7f41d52822a4989f)

Co-authored-by: Zack Kneupper <zachary.kneupper@gmail.com>
Doc/library/functions.rst

index 652e30c6088ad98b727cbc5cb2e8d68b5fdfd488..fef6c6292f95c705c6459e127b7b7ff18fd06064 100644 (file)
@@ -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`.