(cls, data: ReadBuffer)
| 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 | |
| 619 | class ImportBase(Statement): |
nothing calls this directly
no test coverage detected