validate_actions.globals.process_stage

Defines basic interface of pipeline stages.

Classes

ProcessStage(problems)

Interface for processing stages in the validation pipeline.

class validate_actions.globals.process_stage.ProcessStage(problems)[source]

Bases: ABC, Generic[TInput, TOutput]

Interface for processing stages in the validation pipeline.

All processing stages are instantiated with a Problems collection and provide a single method that takes one generic input and returns one generic output.

Parameters:

problems (Problems)

abstractmethod process(input_data)[source]

Process input data and return output.

Parameters:

input_data (TInput) – Generic input to process

Returns:

Generic processed output

Return type:

TOutput