From: Bartosz Sławecki Date: Tue, 24 Feb 2026 12:17:45 +0000 (+0100) Subject: Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) X-Git-Tag: v3.15.0a7~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c95ad8e495646eae4130957e0a4c1cc5ef19120;p=thirdparty%2FPython%2Fcpython.git Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) --- diff --git a/Lib/inspect.py b/Lib/inspect.py index 0eed68d17c70..5d8ebb3dd540 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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')