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

Function format_modules

mypyc/ir/pprint.py:467–473  ·  view source on GitHub ↗
(modules: ModuleIRs)

Source from the content-addressed store, hash-verified

465
466
467def format_modules(modules: ModuleIRs) -> list[str]:
468 ops = []
469 for module in modules.values():
470 for fn in module.functions:
471 ops.extend(format_func(fn))
472 ops.append("")
473 return ops
474
475
476def generate_names_for_ir(args: list[Register], blocks: list[BasicBlock]) -> dict[Value, str]:

Callers 1

generate_cFunction · 0.90

Calls 4

format_funcFunction · 0.85
valuesMethod · 0.80
extendMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…