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

Method dumps

mypy/build.py:4184–4193  ·  view source on GitHub ↗

Convert to JSON string.

(self)

Source from the content-addressed store, hash-verified

4182 self.deps: dict[str, int] = {} # node_id -> pri
4183
4184 def dumps(self) -> str:
4185 """Convert to JSON string."""
4186 total_size = sum(self.sizes.values())
4187 return "[{}, {}, {},\n {},\n {}]".format(
4188 json.dumps(self.node_id),
4189 json.dumps(total_size),
4190 json.dumps(self.scc),
4191 json.dumps(self.sizes),
4192 json.dumps(self.deps),
4193 )
4194
4195
4196def dump_timing_stats(path: str, graph: Graph) -> None:

Callers 11

dump_graphFunction · 0.95
__init__Method · 0.80
daemonizeFunction · 0.80
cmd_statusMethod · 0.80
json_dumpsFunction · 0.80
sendFunction · 0.80
json_suggestionMethod · 0.80
report_errorMethod · 0.80
run_caseMethod · 0.80
mainFunction · 0.80
_write_ref_redirectorMethod · 0.80

Calls 3

sumFunction · 0.85
valuesMethod · 0.80
formatMethod · 0.45

Tested by 1

run_caseMethod · 0.64