mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-81488: Add recursive wording for issubclass docs (GH-92087)
(cherry picked from commit 1066ecb970
)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
This commit is contained in:
parent
31e35bef22
commit
a48d31f204
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue