Step Typing¶
typing
¶
StepOutput = Iterator[List[Dict[str, Any]]]
module-attribute
¶
StepOutput is an alias of the typing Iterator[List[Dict[str, Any]]]
GeneratorStepOutput = Iterator[Tuple[List[Dict[str, Any]], bool]]
module-attribute
¶
GeneratorStepOutput is an alias of the typing Iterator[Tuple[List[Dict[str, Any]], bool]]
StepColumns = Union[List[str], Dict[str, bool]]
module-attribute
¶
StepColumns is an alias of the typing Union[List[str], Dict[str, bool]] used by the
inputs and outputs properties of an Step. In the case of a List[str], it is a list
with the required columns. In the case of a Dict[str, bool], it is a dictionary where
the keys are the columns and the values are booleans indicating whether the column is
required or not.
DatasetUse = Union[DatasetUseType, None]
module-attribute
¶
DatasetUse is an alias of the typing dict[str, Union[str, list[str]]] used by the
returned info of the _dataset_use method of a Step. It is a dictionary used to add
information to the dataset card on uses for the dataset.
DatasetUseType
¶
Bases: TypedDict
DatasetUseType is a TypedDict that represents the information that can be added to a dataset
card on uses for the dataset. It has the following fields:
- title: A string with the title of the use that can be given to the dataset.
- template: A string with the template (to be used with Jinja2) to be rendered in the
dataset card.
- variables: A list of strings with the variables used in the template.