]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Feb 2026 14:16:21 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Feb 2026 14:16:21 +0000 (14:16 +0000)
(cherry picked from commit 4c95ad8e495646eae4130957e0a4c1cc5ef19120)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Lib/inspect.py

index 3cee85f39a613beb4e7b831120345f1afcab2a00..2d229051b4d3c4f0ef8b0d6dfa153fc609108557 100644 (file)
@@ -2660,11 +2660,12 @@ class Parameter:
         The annotation for the parameter if specified.  If the
         parameter has no annotation, this attribute is set to
         `Parameter.empty`.
-    * kind : str
+    * kind
         Describes how argument values are bound to the parameter.
         Possible values: `Parameter.POSITIONAL_ONLY`,
         `Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`,
         `Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
+        Every value has a `description` attribute describing meaning.
     """
 
     __slots__ = ('_name', '_kind', '_default', '_annotation')