Skip to content

Module: misc

Module contains additional classes and functions that are used in actions.

InstanceParameter dataclass

A class to represent the parameter of the step instance with its default value and type.

Attributes:

Name Type Description
name str

The name of the parameter.

value Any

The default value of the parameter.

type Type

The type of the parameter.

InstanceParameters dataclass

A class to represent the parameters of the step instance with their default values and types.

Attributes:

Name Type Description
parameters List[InstanceParameter]

The parameters of the step instance.

from_step(step) classmethod

A method to create an instance of the class from the step instance.

Parameters:

Name Type Description Default
step Step

The step instance.

required

Returns:

Type Description
InstanceParameters

The instance of the class created from the step instance.