mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-81488: Add recursive wording for issubclass docs (#92087)
This commit is contained in:
parent
0729b31a8b
commit
1066ecb970
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
<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