mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-44135: Refine explanation of how passing tuples to issubclass() behaves (GH-26193)
Co-authored-by: Zachary Kneupper <zachary.kneupper@gmail.com>
This commit is contained in:
parent
01dea5f12b
commit
08767c73b5
1 changed files with 3 additions and 3 deletions
|
@ -916,9 +916,9 @@ are always available. They are listed here in alphabetical order.
|
||||||
Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual
|
Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual
|
||||||
<abstract base class>`) of *classinfo*. A
|
<abstract base class>`) of *classinfo*. A
|
||||||
class is considered a subclass of itself. *classinfo* may be a tuple of class
|
class is considered a subclass of itself. *classinfo* may be a tuple of class
|
||||||
objects or a :ref:`types-union`, in which case every entry in *classinfo*
|
objects or a :ref:`types-union`, in which case return True if *class* is a
|
||||||
will be checked. In any other
|
subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError`
|
||||||
case, a :exc:`TypeError` exception is raised.
|
exception is raised.
|
||||||
|
|
||||||
.. versionchanged:: 3.10
|
.. versionchanged:: 3.10
|
||||||
*classinfo* can be a :ref:`types-union`.
|
*classinfo* can be a :ref:`types-union`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue