From: slateny <46876382+slateny@users.noreply.github.com> Date: Sun, 1 May 2022 04:05:20 +0000 (-0700) Subject: gh-81488: Add recursive wording for issubclass docs (#92087) X-Git-Tag: v3.11.0b1~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1066ecb97042b8e89de554e6f9dc2e3d634208c0;p=thirdparty%2FPython%2Fcpython.git gh-81488: Add recursive wording for issubclass docs (#92087) --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 394281462ded..cb8629689708 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -917,7 +917,8 @@ are always available. They are listed here in alphabetical order. Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual `) 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 return ``True`` if *class* is a + objects (or recursively, other such tuples) + 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.