[Python-checkins] gh-81488: Add recursive wording for issubclass docs (GH-92087)
miss-islington
webhook-mailer at python.org
Sun May 1 00:21:59 EDT 2022
https://github.com/python/cpython/commit/a48d31f204642c8b38e55dd78c4839bb7ae5dce9
commit: a48d31f204642c8b38e55dd78c4839bb7ae5dce9
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-04-30T21:21:51-07:00
summary:
gh-81488: Add recursive wording for issubclass docs (GH-92087)
(cherry picked from commit 1066ecb97042b8e89de554e6f9dc2e3d634208c0)
Co-authored-by: slateny <46876382+slateny at users.noreply.github.com>
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 42fbf4e6f969c..ff81558da14cf 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.
More information about the Python-checkins
mailing list