pipeline.diff.walk_swap_states
def walk_swap_states(states: dict[str, State], registry: SoftRegistry) -> dict[str, State]Swap a :class:`~unitrack.states.State`'s ``process``, ``observation``, ``init``.
Parameters
| Name | Type | Description |
|---|---|---|
| states | dict[str, State] | Mapping of state name to :class:`~unitrack.states.State`. |
| registry | SoftRegistry | Hard-to-soft factory table. |
Returns
dict — New mapping with each :class:`~unitrack.states.State` rebuilt via :func:`dataclasses.replace`; the input is not mutated.
Source: unitrack/pipeline/diff.py:217