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

Method serialize

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

Source from the content-addressed store, hash-verified

3355 return visitor.visit_type_var_tuple_expr(self)
3356
3357 def serialize(self) -> JsonDict:
3358 return {
3359 ".class": "TypeVarTupleExpr",
3360 "name": self._name,
3361 "fullname": self._fullname,
3362 "upper_bound": self.upper_bound.serialize(),
3363 "tuple_fallback": self.tuple_fallback.serialize(),
3364 "default": self.default.serialize(),
3365 "variance": self.variance,
3366 }
3367
3368 @classmethod
3369 def deserialize(cls, data: JsonDict) -> TypeVarTupleExpr:

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.45

Tested by

no test coverage detected