pipeline.SoftRegistry.register
def register(self, hard_cls: type, factory: _Factory) -> NoneRegister a factory for the given hard-node class.
Parameters
| Name | Type | Description |
|---|---|---|
| hard_cls | type | Class to swap on encounter. |
| factory | _Factory | Callable that consumes the hard node and returns its soft replacement. |
Source: unitrack/pipeline/diff.py:42