]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541)
authorBartosz Sławecki <bartosz@ilikepython.com>
Tue, 24 Feb 2026 12:17:45 +0000 (13:17 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Feb 2026 12:17:45 +0000 (13:17 +0100)
Lib/inspect.py

index 0eed68d17c702baf6611f5a2bf144070def83542..5d8ebb3dd5400085f1436ce3d9444e6ee2317988 100644 (file)
@@ -2666,11 +2666,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')