flowrep.parsers.dataclass_parser module

flowrep.parsers.dataclass_parser.dataclass(cls: _Cls, /) _Cls[source]
flowrep.parsers.dataclass_parser.dataclass(label: str | None = None, /, *output_labels: str, **kwargs: Any) Callable[[_Cls], _Cls]

Stack @dataclasses.dataclass then @atomic on a class.

Keyword args are routed by name: those matching dataclasses.dataclass go to it, the rest go to @atomic. Usable bare or with arguments.

flowrep.parsers.dataclass_parser.dataclass_fields_to_outputs(dataclass, /)[source]