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

Method deserialize

mypy/nodes.py:582–592  ·  view source on GitHub ↗
(cls, data: JsonDict)

Source from the content-addressed store, hash-verified

580
581 @classmethod
582 def deserialize(cls, data: JsonDict) -> MypyFile:
583 assert data[".class"] == "MypyFile", data
584 tree = MypyFile([], [])
585 tree._fullname = data["_fullname"]
586 tree.names = SymbolTable.deserialize(data["names"])
587 tree.is_stub = data["is_stub"]
588 tree.path = data["path"]
589 tree.is_partial_stub_package = data["is_partial_stub_package"]
590 tree.is_cache_skeleton = True
591 tree.future_import_flags = set(data["future_import_flags"])
592 return tree
593
594 def write(self, data: WriteBuffer) -> None:
595 write_tag(data, MYPY_FILE)

Callers

nothing calls this directly

Calls 3

MypyFileClass · 0.85
setClass · 0.85
deserializeMethod · 0.45

Tested by

no test coverage detected