]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102296 Document that inspect.Parameter kinds support ordering (GH-102297)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 27 Feb 2023 15:22:07 +0000 (07:22 -0800)
committerGitHub <noreply@github.com>
Mon, 27 Feb 2023 15:22:07 +0000 (07:22 -0800)
(cherry picked from commit 0db6f442598a1994c37f24e704892a2bb71a0a1b)

Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
Automerge-Triggered-By: GH:AlexWaygood
Doc/library/inspect.rst

index cc9c22fe3d9778e65ee9eaf1e8b34d5069f935f8..35aa99464ed04f26376c902f86f6605e11b5643f 100644 (file)
@@ -753,8 +753,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 support comparison and ordering, in the following order:
 
       .. tabularcolumns:: |l|L|