MCPcopy
hub / github.com/pydantic/pydantic / deserialize

Method deserialize

pydantic/mypy.py:445–448  ·  view source on GitHub ↗

Based on mypy.plugins.dataclasses.DataclassAttribute.deserialize.

(cls, data: JsonDict)

Source from the content-addressed store, hash-verified

443
444 @classmethod
445 def deserialize(cls, data: JsonDict) -> PydanticModelClassVar:
446 """Based on mypy.plugins.dataclasses.DataclassAttribute.deserialize."""
447 data = data.copy()
448 return cls(**data)
449
450 def serialize(self) -> JsonDict:
451 """Based on mypy.plugins.dataclasses.DataclassAttribute.serialize."""

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected