Serialize then deserialize and return the result.
(obj: Any)
| 31 | # Helpers |
| 32 | # --------------------------------------------------------------------------- |
| 33 | def _roundtrip(obj: Any) -> Any: |
| 34 | """Serialize then deserialize and return the result.""" |
| 35 | return from_json_graph_str(to_json_graph_str(obj)) |
| 36 | |
| 37 | |
| 38 | def _assert_roundtrip_eq(obj: Any, cmp: Callable[..., Any] | None = None) -> None: |
no test coverage detected