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

Method read

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

Source from the content-addressed store, hash-verified

2095
2096 @classmethod
2097 def read(cls, data: ReadBuffer) -> Parameters:
2098 ret = Parameters(
2099 read_type_list(data),
2100 # This is a micro-optimization until mypyc gets dedicated enum support. Otherwise,
2101 # we would spend ~20% of types deserialization time in Enum.__call__().
2102 [ARG_KINDS[ak] for ak in read_int_list(data)],
2103 read_str_opt_list(data),
2104 variables=read_type_var_likes(data),
2105 imprecise_arg_kinds=read_bool(data),
2106 )
2107 assert read_tag(data) == END_TAG
2108 return ret
2109
2110 def __hash__(self) -> int:
2111 return hash(

Callers

nothing calls this directly

Calls 5

read_int_listFunction · 0.90
read_str_opt_listFunction · 0.90
ParametersClass · 0.85
read_type_listFunction · 0.85
read_type_var_likesFunction · 0.85

Tested by

no test coverage detected