Skip to content

Parameters

The parameters of a ProcessingStep are specified by the type annotations given. These are required so the functions signature is well-defined and can be passed to the functions manifest. For larger inputs, or inputs that should depend on other computations, use a DataSlots instead.

Standard parameter types, including primitives bool, str, int, float, and list, can be passed directly. For more complex parameters, such as argument lists and StrEnums, it is recommended to use a dataclass or Pydantic classes to create a well-described type.

from typing import Any
from pydantic import conlist, NonNegativeInt
def many_parameters(
self,
a: dict,
b: int,
c: conlist(int, max_length=3) = (1, 2, 3),
d: bool = True
) -> int: