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

Method read

mypy/errors.py:183–200  ·  view source on GitHub ↗
(cls, buf: ReadBuffer)

Source from the content-addressed store, hash-verified

181
182 @classmethod
183 def read(cls, buf: ReadBuffer) -> ErrorInfo:
184 return ErrorInfo(
185 import_ctx=[(read_str(buf), read_int(buf)) for _ in range(read_int_bare(buf))],
186 local_ctx=(read_str_opt(buf), read_str_opt(buf)),
187 line=read_int(buf),
188 column=read_int(buf),
189 end_line=read_int(buf),
190 end_column=read_int(buf),
191 severity=read_str(buf),
192 message=read_str(buf),
193 code=mypy_error_codes[code] if (code := read_str_opt(buf)) else None,
194 blocker=read_bool(buf),
195 only_once=read_bool(buf),
196 module=read_str_opt(buf),
197 target=read_str_opt(buf),
198 origin_span=read_int_list(buf),
199 priority=read_int(buf),
200 )
201
202
203class ErrorWatcher:

Callers

nothing calls this directly

Calls 6

read_strFunction · 0.90
read_intFunction · 0.90
read_str_optFunction · 0.90
read_int_listFunction · 0.90
ErrorInfoClass · 0.85
rangeClass · 0.85

Tested by

no test coverage detected