From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 Feb 2026 13:18:48 +0000 (+0100) Subject: [3.13] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH... X-Git-Tag: v3.13.13~163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1534307e80ef3a60d656bb60e31ed605ff312f0;p=thirdparty%2FPython%2Fcpython.git [3.13] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (GH-145175) (cherry picked from commit 4c95ad8e495646eae4130957e0a4c1cc5ef19120) Co-authored-by: Bartosz Sławecki --- diff --git a/Lib/inspect.py b/Lib/inspect.py index cee6a7f18333..b1f3b9fc8dfb 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -2745,11 +2745,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')