[3.13] Fix inspect.Parameter docstring on the kind attribute (GH-143541) (GH-145175)

(cherry picked from commit 4c95ad8e49)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
This commit is contained in:
Miss Islington (bot) 2026-02-24 14:18:48 +01:00 committed by GitHub
parent cb1d20b81d
commit f1534307e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')