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

Method read

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

Source from the content-addressed store, hash-verified

3295
3296 @classmethod
3297 def read(cls, data: ReadBuffer) -> LiteralType:
3298 assert read_tag(data) == INSTANCE
3299 fallback = Instance.read(data)
3300 tag = read_tag(data)
3301 ret = LiteralType(read_literal(data, tag), fallback)
3302 assert read_tag(data) == END_TAG
3303 return ret
3304
3305
3306class UnionType(ProperType):

Callers

nothing calls this directly

Calls 3

read_literalFunction · 0.90
LiteralTypeClass · 0.85
readMethod · 0.45

Tested by

no test coverage detected