AncestralClassTransformerResolver

class ditto.resolvers.AncestralClassTransformerResolver(operator_transformers)[source]

Bases: ditto.resolvers.class_transformer_resolver.ClassTransformerResolver

Extends the ClassTransformerResolver by matching on all the ancestor classes of the given operator

Parameters

operator_transformers (Dict[Type[BaseOperator], Type[OperatorTransformer]]) – a map of operator type and transformer type

resolve_transformer(task)[source]

The main method to be implemented by a resolver

Parameters

task (BaseOperator) – the source task for which a transformer has to be resolved (found)

Return type

Type[OperatorTransformer]

Returns

the type of OperatorTransformer found for this BaseOperator