https://github.com/python/cpython/commit/70e365c0ca6c95461aa92dc059fef7b64e3290b0
commit: 70e365c0ca6c95461aa92dc059fef7b64e3290b0
branch: main
author: Guo Ci <[email protected]>
committer: hugovk <[email protected]>
date: 2026-05-06T15:08:13+03:00
summary:

Replace use of Python keyword in `issubclass` function documentation (#142357)

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 06fd5cdc7be2a6..4394dc0690cf7e 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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.
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to