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

Method serialize

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

Source from the content-addressed store, hash-verified

940 self.min_len = min_len
941
942 def serialize(self) -> JsonDict:
943 assert not self.id.is_meta_var()
944 return {
945 ".class": "TypeVarTupleType",
946 "name": self.name,
947 "fullname": self.fullname,
948 "id": self.id.raw_id,
949 "namespace": self.id.namespace,
950 "upper_bound": self.upper_bound.serialize(),
951 "tuple_fallback": self.tuple_fallback.serialize(),
952 "default": self.default.serialize(),
953 "min_len": self.min_len,
954 }
955
956 @classmethod
957 def deserialize(cls, data: JsonDict) -> TypeVarTupleType:

Callers

nothing calls this directly

Calls 2

is_meta_varMethod · 0.80
serializeMethod · 0.45

Tested by

no test coverage detected