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

Function read_json

mypy/cache.py:547–550  ·  view source on GitHub ↗
(data: ReadBuffer)

Source from the content-addressed store, hash-verified

545# These are functions for JSON *dictionaries* specifically. Unfortunately, we
546# must use imprecise types here, because the callers use imprecise types.
547def read_json(data: ReadBuffer) -> dict[str, Any]:
548 assert read_tag(data) == DICT_STR_GEN
549 size = read_int_bare(data)
550 return {read_str_bare(data): read_json_value(data) for _ in range(size)}
551
552
553def write_json(data: WriteBuffer, value: dict[str, Any]) -> None:

Callers 3

readMethod · 0.90
mainFunction · 0.90
readMethod · 0.85

Calls 2

read_json_valueFunction · 0.85
rangeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…