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

Method deserialize

mypy/nodes.py:5169–5176  ·  view source on GitHub ↗
(cls, data: JsonDict)

Source from the content-addressed store, hash-verified

5167
5168 @classmethod
5169 def deserialize(cls, data: JsonDict) -> DataclassTransformSpec:
5170 return DataclassTransformSpec(
5171 eq_default=data.get("eq_default"),
5172 order_default=data.get("order_default"),
5173 kw_only_default=data.get("kw_only_default"),
5174 frozen_default=data.get("frozen_default"),
5175 field_specifiers=tuple(data.get("field_specifiers", [])),
5176 )
5177
5178 def write(self, data: WriteBuffer) -> None:
5179 write_tag(data, DT_SPEC)

Callers

nothing calls this directly

Calls 3

tupleClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected