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

Method serialize

mypy/types.py:1336–1342  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1334 return isinstance(other, AnyType)
1335
1336 def serialize(self) -> JsonDict:
1337 return {
1338 ".class": "AnyType",
1339 "type_of_any": self.type_of_any,
1340 "source_any": self.source_any.serialize() if self.source_any is not None else None,
1341 "missing_import_name": self.missing_import_name,
1342 }
1343
1344 @classmethod
1345 def deserialize(cls, data: JsonDict) -> AnyType:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected