From: Guo Ci Date: Wed, 6 May 2026 12:08:13 +0000 (-0400) Subject: Replace use of Python keyword in `issubclass` function documentation (#142357) X-Git-Tag: v3.15.0b1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70e365c0ca6c95461aa92dc059fef7b64e3290b0;p=thirdparty%2FPython%2Fcpython.git Replace use of Python keyword in `issubclass` function documentation (#142357) --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 06fd5cdc7be2..4394dc0690cf 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 `) 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.