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

Method read

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

Source from the content-addressed store, hash-verified

4687
4688 @classmethod
4689 def read(cls, data: ReadBuffer) -> TypeAlias:
4690 fullname = read_str(data)
4691 module = read_str(data)
4692 target = mypy.types.read_type(data)
4693 alias_tvars = mypy.types.read_type_var_likes(data)
4694 ret = TypeAlias(
4695 target,
4696 fullname,
4697 module,
4698 -1,
4699 -1,
4700 alias_tvars=alias_tvars,
4701 no_args=read_bool(data),
4702 normalized=read_bool(data),
4703 python_3_12_type_alias=read_bool(data),
4704 )
4705 assert read_tag(data) == END_TAG
4706 return ret
4707
4708
4709class PlaceholderNode(SymbolNode):

Callers

nothing calls this directly

Calls 2

read_strFunction · 0.90
TypeAliasClass · 0.85

Tested by

no test coverage detected