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

Method serialize

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

Source from the content-addressed store, hash-verified

1560 return f"ExtraAttrs({self.attrs!r}, {self.immutable!r}, {self.mod_name!r})"
1561
1562 def serialize(self) -> JsonDict:
1563 return {
1564 ".class": "ExtraAttrs",
1565 "attrs": {k: v.serialize() for k, v in self.attrs.items()},
1566 "immutable": sorted(self.immutable),
1567 "mod_name": self.mod_name,
1568 }
1569
1570 @classmethod
1571 def deserialize(cls, data: JsonDict) -> ExtraAttrs:

Callers

nothing calls this directly

Calls 3

sortedFunction · 0.85
serializeMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected