ParameterKind enum

Reference: https://docs.python.org/3/library/inspect.html#inspect.Parameter.kind

Describes how argument values are bound to the parameter. The possible values are accessible via ParameterKind (like ParameterKind.keyword_only), and support comparison and ordering, in the following order:

Inheritance
Available extensions

Values

positional_only → const ParameterKind

Value must be supplied as a positional argument. Positional only parameters are those which appear before a / entry (if present) in a Python function definition.

positional_or_keyword → const ParameterKind

Value may be supplied as either a keyword or positional argument (this is the standard binding behaviour for functions implemented in Python.)

var_positional → const ParameterKind

A tuple of positional arguments that aren’t bound to any other parameter. This corresponds to a *args parameter in a Python function definition.

keyword_only → const ParameterKind

Value must be supplied as a keyword argument. Keyword only parameters are those which appear after a * or *args entry in a Python function definition.

var_keyword → const ParameterKind

A dict of keyword arguments that aren’t bound to any other parameter. This corresponds to a **kwargs parameter in a Python function definition.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ParameterKind>
A constant List of the values in this enum, in order of their declaration.