Get a dict of function attributes safe to compare across serialization
(x: FuncIR)
| 24 | |
| 25 | |
| 26 | def get_function_dict(x: FuncIR) -> dict[str, Any]: |
| 27 | """Get a dict of function attributes safe to compare across serialization""" |
| 28 | d = get_dict(x) |
| 29 | d.pop("blocks", None) |
| 30 | d.pop("env", None) |
| 31 | return d |
| 32 | |
| 33 | |
| 34 | def assert_blobs_same(x: Any, y: Any, trail: tuple[Any, ...]) -> None: |
no test coverage detected
searching dependent graphs…