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

Method serialize

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

Source from the content-addressed store, hash-verified

1728 return self.info.is_generic()
1729
1730 def serialize(self) -> JsonDict:
1731 # Not serialized: defs, base_type_exprs, metaclass, decorators,
1732 # analyzed (for named tuples etc.)
1733 return {
1734 ".class": "ClassDef",
1735 "name": self.name,
1736 "fullname": self.fullname,
1737 "type_vars": [v.serialize() for v in self.type_vars],
1738 }
1739
1740 @classmethod
1741 def deserialize(cls, data: JsonDict) -> ClassDef:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected