Parse a raw dictionary into a typed :class:`DesignConfig`.
(data: Mapping[str, Any], *, source: str | None = None)
| 19 | |
| 20 | |
| 21 | def load_design_from_mapping(data: Mapping[str, Any], *, source: str | None = None) -> DesignConfig: |
| 22 | """Parse a raw dictionary into a typed :class:`DesignConfig`.""" |
| 23 | prepared = prepare_design_mapping(data, source=source) |
| 24 | return DesignConfig.from_dict(prepared, path="root") |
| 25 | |
| 26 | |
| 27 | def load_design_from_file(path: Path) -> DesignConfig: |
no test coverage detected