MCPcopy
hub / github.com/python/mypy / get_function_dict

Function get_function_dict

mypyc/test/test_serialization.py:26–31  ·  view source on GitHub ↗

Get a dict of function attributes safe to compare across serialization

(x: FuncIR)

Source from the content-addressed store, hash-verified

24
25
26def 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
34def assert_blobs_same(x: Any, y: Any, trail: tuple[Any, ...]) -> None:

Callers 1

assert_modules_sameFunction · 0.85

Calls 2

get_dictFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…