This commit is contained in:
Bartosz Sławecki 2026-02-05 05:07:58 +00:00 committed by GitHub
commit e708bb5559
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')