method

pipeline.SoftRegistry.register

def register(self, hard_cls: type, factory: _Factory) -> None

Register a factory for the given hard-node class.

Parameters

NameTypeDescription
hard_clstypeClass to swap on encounter.
factory_FactoryCallable that consumes the hard node and returns its soft replacement.

Source: unitrack/pipeline/diff.py:42