Skip to content

Commit b3c872d

Browse files
committed
Elaborate on kinds
1 parent 799d39f commit b3c872d

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
@@ -2683,11 +2683,12 @@ class Parameter:
26832683
The annotation for the parameter if specified. If the
26842684
parameter has no annotation, this attribute is set to
26852685
`Parameter.empty`.
2686-
* kind : int
2686+
* kind : int (enum)
26872687
Describes how argument values are bound to the parameter.
26882688
Possible values: `Parameter.POSITIONAL_ONLY`,
26892689
`Parameter.POSITIONAL_OR_KEYWORD`, `Parameter.VAR_POSITIONAL`,
26902690
`Parameter.KEYWORD_ONLY`, `Parameter.VAR_KEYWORD`.
2691+
Every value has a `description` attribute describing meaning.
26912692
"""
26922693

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

0 commit comments

Comments
 (0)