ClassTaskMatcher

class ditto.matchers.ClassTaskMatcher(operator_class)[source]

Bases: ditto.api.TaskMatcher

Matches a given operator based on the class being the same

Parameters

operator_class (Type) – the class which should be checked for equality

does_match(task)[source]

Matches this operator’s entire ancestry of classes to the operator_class to match against

Parameters

task (BaseOperator) –

Return type

bool

Returns