MCPcopy Index your code
hub / github.com/python/mypy / dump

Method dump

mypy/test/testsemanal.py:204–210  ·  view source on GitHub ↗
(self, str_conv: StrConv, type_str_conv: TypeStrVisitor)

Source from the content-addressed store, hash-verified

202
203class TypeInfoMap(dict[str, TypeInfo]):
204 def dump(self, str_conv: StrConv, type_str_conv: TypeStrVisitor) -> str:
205 a: list[str] = ["TypeInfoMap("]
206 for x, y in sorted(self.items()):
207 ti = ("\n" + " ").join(y.dump(str_conv, type_str_conv).split("\n"))
208 a.append(f" {x} : {ti}")
209 a[-1] += ")"
210 return "\n".join(a)

Callers 3

run_caseMethod · 0.95
mainFunction · 0.45
check_outputFunction · 0.45

Calls 5

sortedFunction · 0.85
splitMethod · 0.80
appendMethod · 0.80
itemsMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected