Skip to content

Commit 70e365c

Browse files
authored
Replace use of Python keyword in issubclass function documentation (#142357)
1 parent 762c9f9 commit 70e365c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,13 +1107,13 @@ are always available. They are listed here in alphabetical order.
11071107
*classinfo* can be a :ref:`types-union`.
11081108

11091109

1110-
.. function:: issubclass(class, classinfo, /)
1110+
.. function:: issubclass(cls, classinfo, /)
11111111

1112-
Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual
1112+
Return ``True`` if *cls* is a subclass (direct, indirect, or :term:`virtual
11131113
<abstract base class>`) of *classinfo*. A
11141114
class is considered a subclass of itself. *classinfo* may be a tuple of class
11151115
objects (or recursively, other such tuples)
1116-
or a :ref:`types-union`, in which case return ``True`` if *class* is a
1116+
or a :ref:`types-union`, in which case return ``True`` if *cls* is a
11171117
subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError`
11181118
exception is raised.
11191119

0 commit comments

Comments
 (0)