PyDocs

Nav

Python Runtime Services

Parameter.kind

inspect

attribute of Parameter (source)
Describes how argument values are bound to the parameter. The possible values are accessible via Parameter (like Parameter.KEYWORD_ONLY), and support comparison and ordering, in the following order:
Members of Parameter.kind

d

description
Describes an enum value of Parameter.kind.
1 Example
>>> def foo(a, b, *, c, d=10):
...     pass

>>> sig = signature(foo)
>>> for param in sig.parameters.values():
...     if (param.kind == param.KEYWORD_ONLY and
...                        param.default is param.empty):
...         print('Parameter:', param)
Parameter: c
from the Python docs
See Also
No see-alsos for inspect/Parameter.kind
0 Notes
No notes for Parameter.kind