From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 1 May 2022 04:21:51 +0000 (-0700) Subject: gh-81488: Add recursive wording for issubclass docs (GH-92087) X-Git-Tag: v3.10.5~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a48d31f204642c8b38e55dd78c4839bb7ae5dce9;p=thirdparty%2FPython%2Fcpython.git gh-81488: Add recursive wording for issubclass docs (GH-92087) (cherry picked from commit 1066ecb97042b8e89de554e6f9dc2e3d634208c0) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 42fbf4e6f969..ff81558da14c 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -913,7 +913,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.