Skip to content

Commit 08767c7

Browse files
authored
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
Co-authored-by: Zachary Kneupper <[email protected]>
1 parent 01dea5f commit 08767c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,9 @@ are always available. They are listed here in alphabetical order.
916916
Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual
917917
<abstract base class>`) of *classinfo*. A
918918
class is considered a subclass of itself. *classinfo* may be a tuple of class
919-
objects or a :ref:`types-union`, in which case every entry in *classinfo*
920-
will be checked. In any other
921-
case, a :exc:`TypeError` exception is raised.
919+
objects or a :ref:`types-union`, in which case return True if *class* is a
920+
subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError`
921+
exception is raised.
922922

923923
.. versionchanged:: 3.10
924924
*classinfo* can be a :ref:`types-union`.

0 commit comments

Comments
 (0)