From e7ce90cbd9178341d7dd3a1bc4357c7391fc9048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20S=C5=82awecki?= Date: Tue, 24 Feb 2026 13:17:45 +0100 Subject: [PATCH] Fix `inspect.Parameter` docstring on the `kind` attribute (GH-143541) (cherry picked from commit 4c95ad8e495646eae4130957e0a4c1cc5ef19120) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartosz Sławecki --- Lib/inspect.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/inspect.py b/Lib/inspect.py index 3cee85f39a613b..2d229051b4d3c4 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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')