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

Method read

mypy/nodes.py:605–616  ·  view source on GitHub ↗
(cls, data: ReadBuffer)

Source from the content-addressed store, hash-verified

603
604 @classmethod
605 def read(cls, data: ReadBuffer) -> MypyFile:
606 assert read_tag(data) == MYPY_FILE
607 tree = MypyFile([], [])
608 tree._fullname = read_str(data)
609 tree.names = SymbolTable.read(data)
610 tree.is_stub = read_bool(data)
611 tree.path = read_str(data)
612 tree.is_partial_stub_package = read_bool(data)
613 tree.future_import_flags = set(read_str_list(data))
614 tree.is_cache_skeleton = True
615 assert read_tag(data) == END_TAG
616 return tree
617
618
619class ImportBase(Statement):

Callers

nothing calls this directly

Calls 5

read_strFunction · 0.90
read_str_listFunction · 0.90
MypyFileClass · 0.85
setClass · 0.85
readMethod · 0.45

Tested by

no test coverage detected