diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-05-01 04:21:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 04:21:51 (GMT) |
commit | a48d31f204642c8b38e55dd78c4839bb7ae5dce9 (patch) | |
tree | d10fe5eacf56f4db0cf290eb84a54c5bc4204013 /Doc | |
parent | 31e35bef22e6cf21526b1099c650e97a0a5c6652 (diff) | |
download | cpython-a48d31f204642c8b38e55dd78c4839bb7ae5dce9.zip cpython-a48d31f204642c8b38e55dd78c4839bb7ae5dce9.tar.gz cpython-a48d31f204642c8b38e55dd78c4839bb7ae5dce9.tar.bz2 |
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>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 42fbf4e..ff81558 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 <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 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. |