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

Method read

mypy/types.py:1362–1371  ·  view source on GitHub ↗
(cls, data: ReadBuffer)

Source from the content-addressed store, hash-verified

1360
1361 @classmethod
1362 def read(cls, data: ReadBuffer) -> AnyType:
1363 tag = read_tag(data)
1364 if tag != LITERAL_NONE:
1365 assert tag == ANY_TYPE
1366 source_any = AnyType.read(data)
1367 else:
1368 source_any = None
1369 ret = AnyType(read_int(data), source_any, read_str_opt(data))
1370 assert read_tag(data) == END_TAG
1371 return ret
1372
1373
1374class UninhabitedType(ProperType):

Callers

nothing calls this directly

Calls 4

read_intFunction · 0.90
read_str_optFunction · 0.90
AnyTypeClass · 0.85
readMethod · 0.45

Tested by

no test coverage detected