MCPcopy Create free account
hub / github.com/python/mypy / deserialize

Method deserialize

mypyc/ir/func_ir.py:243–256  ·  view source on GitHub ↗
(cls, data: JsonDict, ctx: DeserMaps)

Source from the content-addressed store, hash-verified

241
242 @classmethod
243 def deserialize(cls, data: JsonDict, ctx: DeserMaps) -> FuncDecl:
244 return FuncDecl(
245 data["name"],
246 data["class_name"],
247 data["module_name"],
248 FuncSignature.deserialize(data["sig"], ctx),
249 data["kind"],
250 is_prop_setter=data["is_prop_setter"],
251 is_prop_getter=data["is_prop_getter"],
252 is_generator=data["is_generator"],
253 is_coroutine=data["is_coroutine"],
254 implicit=data["implicit"],
255 internal=data["internal"],
256 )
257
258
259class FuncIR:

Callers

nothing calls this directly

Calls 2

FuncDeclClass · 0.85
deserializeMethod · 0.45

Tested by

no test coverage detected