Skip to content

Commit 4c95ad8

Browse files
authored
Fix inspect.Parameter docstring on the kind attribute (GH-143541)
1 parent 27ded24 commit 4c95ad8

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
@@ -2666,11 +2666,12 @@ class Parameter:
26662666
The annotation for the parameter if specified. If the
26672667
parameter has no annotation, this attribute is set to
26682668
`Parameter.empty`.
2669-
* kind : str
2669+
* kind
26702670
Describes how argument values are bound to the parameter.
26712671
Possible values: `Parameter.POSITIONAL_ONLY`,
26722672
`Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`,
26732673
`Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
2674+
Every value has a `description` attribute describing meaning.
26742675
"""
26752676

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

0 commit comments

Comments
 (0)