From 1066ecb97042b8e89de554e6f9dc2e3d634208c0 Mon Sep 17 00:00:00 2001 From: slateny <46876382+slateny@users.noreply.github.com> Date: Sat, 30 Apr 2022 21:05:20 -0700 Subject: [PATCH] gh-81488: Add recursive wording for issubclass docs (#92087) --- Doc/library/functions.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 394281462ded..cb8629689708 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -917,7 +917,8 @@ are always available. They are listed here in alphabetical order. Return ``True`` if *class* 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 a :ref:`types-union`, in which case return ``True`` if *class* is a + objects (or recursively, other such tuples) + or a :ref:`types-union`, in which case return ``True`` if *class* is a subclass of any entry in *classinfo*. In any other case, a :exc:`TypeError` exception is raised. -- 2.47.3