Skip to content

Commit f153430

Browse files
[3.13] Fix inspect.Parameter docstring on the kind attribute (GH-143541) (GH-145175)
(cherry picked from commit 4c95ad8) Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
1 parent cb1d20b commit f153430

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2745,11 +2745,12 @@ class Parameter:
27452745
The annotation for the parameter if specified. If the
27462746
parameter has no annotation, this attribute is set to
27472747
`Parameter.empty`.
2748-
* kind : str
2748+
* kind
27492749
Describes how argument values are bound to the parameter.
27502750
Possible values: `Parameter.POSITIONAL_ONLY`,
27512751
`Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`,
27522752
`Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
2753+
Every value has a `description` attribute describing meaning.
27532754
"""
27542755

27552756
__slots__ = ('_name', '_kind', '_default', '_annotation')

0 commit comments

Comments
 (0)