From 70e365c0ca6c95461aa92dc059fef7b64e3290b0 Mon Sep 17 00:00:00 2001 From: Guo Ci Date: Wed, 6 May 2026 08:08:13 -0400 Subject: [PATCH] Replace use of Python keyword in `issubclass` function documentation (#142357) --- Doc/library/functions.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.47.3