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

Method serialize

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

Source from the content-addressed store, hash-verified

3286 return visitor.visit_paramspec_expr(self)
3287
3288 def serialize(self) -> JsonDict:
3289 return {
3290 ".class": "ParamSpecExpr",
3291 "name": self._name,
3292 "fullname": self._fullname,
3293 "upper_bound": self.upper_bound.serialize(),
3294 "default": self.default.serialize(),
3295 "variance": self.variance,
3296 }
3297
3298 @classmethod
3299 def deserialize(cls, data: JsonDict) -> ParamSpecExpr:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected