8000 gh-81488: Add recursive wording for issubclass docs (GH-92087) · python/cpython@a48d31f · GitHub
[go: up one dir, main page]

Skip to content

Commit a48d31f

Browse files
gh-81488: Add recursive wording for issubclass docs (GH-92087)
(cherry picked from commit 1066ecb) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
1 parent 31e35be commit a48d31f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,8 @@ are always available. They are listed here in alphabetical order.
913913
Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual
914914
<abstract base class>`) of *classinfo*. A
915915
class is considered a subclass of itself. *classinfo* may be a tuple of class
916-
objects or a :ref:`types-union`, in which case return ``True`` if *class* is a
916+
objects (or recursively, other such tuples)
917+
or a :ref:`types-union`, in which case return ``True`` if *class* is a
917918
subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError`
918919
exception is raised.
919920

0 commit comments

Comments
 (0)
0