From 1c57acc930d609fd8f3fe5f6aa688c40bd4e2a3c Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Mon, 27 Feb 2023 15:38:46 +0100 Subject: [PATCH 1/2] Document that inspect.Parameter kinds support ordering --- Doc/library/inspect.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 9c3be5a250a67e..15b8a795adcb9e 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -802,8 +802,9 @@ function. .. attribute:: Parameter.kind - Describes how argument values are bound to the parameter. Possible values - (accessible via :class:`Parameter`, like ``Parameter.KEYWORD_ONLY``): + Describes how argument values are bound to the parameter. The possible + values are accessible via :class:`Parameter` (like ``Parameter.KEYWORD_ONLY``), + and are guaranteed to support comparison and ordering, in the following order: .. tabularcolumns:: |l|L| From 94a4254150c0c92ca5090ba0ce37d8cf59583cc6 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Mon, 27 Feb 2023 16:04:33 +0100 Subject: [PATCH 2/2] Slightly more concise Co-authored-by: Alex Waygood --- Doc/library/inspect.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 15b8a795adcb9e..789e9839d22f71 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -804,7 +804,7 @@ function. Describes how argument values are bound to the parameter. The possible values are accessible via :class:`Parameter` (like ``Parameter.KEYWORD_ONLY``), - and are guaranteed to support comparison and ordering, in the following order: + and support comparison and ordering, in the following order: .. tabularcolumns:: |l|L|