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

Method read

mypy/nodes.py:1381–1389  ·  view source on GitHub ↗
(cls, data: ReadBuffer)

Source from the content-addressed store, hash-verified

1379
1380 @classmethod
1381 def read(cls, data: ReadBuffer) -> Decorator:
1382 assert read_tag(data) == FUNC_DEF
1383 func = FuncDef.read(data)
1384 assert read_tag(data) == VAR
1385 var = Var.read(data)
1386 dec = Decorator(func, [], var)
1387 dec.is_overload = read_bool(data)
1388 assert read_tag(data) == END_TAG
1389 return dec
1390
1391 def is_dynamic(self) -> bool:
1392 return self.func.is_dynamic()

Callers

nothing calls this directly

Calls 2

DecoratorClass · 0.85
readMethod · 0.45

Tested by

no test coverage detected