Skip to content

Commit 9d53cbf

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

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
@@ -2660,11 +2660,12 @@ class Parameter:
26602660
The annotation for the parameter if specified. If the
26612661
parameter has no annotation, this attribute is set to
26622662
`Parameter.empty`.
2663-
* kind : str
2663+
* kind
26642664
Describes how argument values are bound to the parameter.
26652665
Possible values: `Parameter.POSITIONAL_ONLY`,
26662666
`Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`,
26672667
`Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
2668+
Every value has a `description` attribute describing meaning.
26682669
"""
26692670

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

0 commit comments

Comments
 (0)