gh-81488: Add recursive wording for issubclass docs (#92087)

This commit is contained in:
slateny 2022-04-30 21:05:20 -07:00 committed by GitHub
parent 0729b31a8b
commit 1066ecb970
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.