mirror of
https://github.com/python/cpython.git
synced 2026-02-05 17:35:34 +00:00
Merge b3c872d0ff into b6d8aa436b
This commit is contained in:
commit
e708bb5559
1 changed files with 2 additions and 1 deletions
|
|
@ -2666,11 +2666,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 : int (enum)
|
||||
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