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

Method serialize

mypy/nodes.py:570–579  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

568 return self._is_typeshed_file
569
570 def serialize(self) -> JsonDict:
571 return {
572 ".class": "MypyFile",
573 "_fullname": self._fullname,
574 "names": self.names.serialize(self._fullname),
575 "is_stub": self.is_stub,
576 "path": self.path,
577 "is_partial_stub_package": self.is_partial_stub_package,
578 "future_import_flags": sorted(self.future_import_flags),
579 }
580
581 @classmethod
582 def deserialize(cls, data: JsonDict) -> MypyFile:

Callers

nothing calls this directly

Calls 2

sortedFunction · 0.85
serializeMethod · 0.45

Tested by

no test coverage detected