(
msg: Dict[str, Any],
setters: Dict[str, Callable[[Any], Any]],
exclude: Iterable[str],
)
| 1412 | |
| 1413 | |
| 1414 | def from_dict( |
| 1415 | msg: Dict[str, Any], |
| 1416 | setters: Dict[str, Callable[[Any], Any]], |
| 1417 | exclude: Iterable[str], |
| 1418 | ) -> Dict[str, Any]: |
| 1419 | for key, setter in setters.items(): |
| 1420 | # Split to support file names like meta.json |
| 1421 | if key.split(".")[0] not in exclude and key in msg: |
| 1422 | setter(msg[key]) |
| 1423 | return msg |
| 1424 | |
| 1425 | |
| 1426 | def to_disk( |
no outgoing calls
no test coverage detected
searching dependent graphs…