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

Method serialize

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

Source from the content-addressed store, hash-verified

1108 )
1109
1110 def serialize(self) -> JsonDict:
1111 return {
1112 ".class": "UnboundType",
1113 "name": self.name,
1114 "args": [a.serialize() for a in self.args],
1115 "expr": self.original_str_expr,
1116 "expr_fallback": self.original_str_fallback,
1117 }
1118
1119 @classmethod
1120 def deserialize(cls, data: JsonDict) -> UnboundType:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected