sailfish.kernel.parse_api.Argument

class sailfish.kernel.parse_api.Argument(dtype, name, constraint)[source]

Bases: NamedTuple

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

constraint

Alias for field number 2

dtype

Alias for field number 0

name

Alias for field number 1

constraint: str

Alias for field number 2

count(value, /)

Return number of occurrences of value.

dtype: str

Alias for field number 0

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

name: str

Alias for field number 1