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

Method dump_asts

mypy/test/testmerge.py:148–153  ·  view source on GitHub ↗
(self, modules: dict[str, MypyFile])

Source from the content-addressed store, hash-verified

146 assert False, f"Invalid kind {kind}"
147
148 def dump_asts(self, modules: dict[str, MypyFile]) -> list[str]:
149 a = []
150 for m in sorted(modules):
151 s = modules[m].accept(self.str_conv)
152 a.extend(s.splitlines())
153 return a
154
155 def dump_symbol_tables(self, modules: dict[str, MypyFile]) -> list[str]:
156 a = []

Callers 1

dumpMethod · 0.95

Calls 4

sortedFunction · 0.85
extendMethod · 0.80
splitlinesMethod · 0.80
acceptMethod · 0.45

Tested by

no test coverage detected