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

Function write_json

mypy/cache.py:553–558  ·  view source on GitHub ↗
(data: WriteBuffer, value: dict[str, Any])

Source from the content-addressed store, hash-verified

551
552
553def write_json(data: WriteBuffer, value: dict[str, Any]) -> None:
554 write_tag(data, DICT_STR_GEN)
555 write_int_bare(data, len(value))
556 for key in sorted(value):
557 write_str_bare(data, key)
558 write_json_value(data, value[key])
559
560
561def write_errors(data: WriteBuffer, errs: list[ErrorTuple]) -> None:

Callers 3

to_bytesMethod · 0.90
writeMethod · 0.90
writeMethod · 0.85

Calls 3

lenFunction · 0.85
sortedFunction · 0.85
write_json_valueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…