From 86d579d22ecebe8fa4f7e3e00f4d6a6caf19b83b Mon Sep 17 00:00:00 2001 From: Guo Ci Date: Sat, 6 Dec 2025 13:31:11 -0500 Subject: [PATCH] Replace use of Python keyword in `issubclass` function documentation --- 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 8314fed80fa512..3825c937f78304 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1095,13 +1095,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.