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

Method serialize

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

Source from the content-addressed store, hash-verified

427 return self.alias == other.alias and self.args == other.args
428
429 def serialize(self) -> JsonDict:
430 assert self.alias is not None
431 data: JsonDict = {
432 ".class": "TypeAliasType",
433 "type_ref": self.alias.fullname,
434 "args": [arg.serialize() for arg in self.args],
435 }
436 return data
437
438 @classmethod
439 def deserialize(cls, data: JsonDict) -> TypeAliasType:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected