mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
[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:
parent
cb1d20b81d
commit
f1534307e8
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue