]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Replace use of Python keyword in `issubclass` function documentation (#142357)
authorGuo Ci <zguoci@gmail.com>
Wed, 6 May 2026 12:08:13 +0000 (08:08 -0400)
committerGitHub <noreply@github.com>
Wed, 6 May 2026 12:08:13 +0000 (15:08 +0300)
Doc/library/functions.rst

index 06fd5cdc7be2a63cd2015d3ca438de801cfe4f4e..4394dc0690cf7ef41cfa0006d2ca2a1c60219d61 100644 (file)
@@ -1107,13 +1107,13 @@ are always available.  They are listed here in alphabetical order.
       *classinfo* can be a :ref:`types-union`.
 
 
-.. function:: issubclass(class, classinfo, /)
+.. function:: issubclass(cls, classinfo, /)
 
-   Return ``True`` if *class* is a subclass (direct, indirect, or :term:`virtual
+   Return ``True`` if *cls* 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 recursively, other such tuples)
-   or a :ref:`types-union`, in which case return ``True`` if *class* is a
+   or a :ref:`types-union`, in which case return ``True`` if *cls* is a
    subclass of any entry in *classinfo*.  In any other case, a :exc:`TypeError`
    exception is raised.