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

Function read_parse_error

mypy/nodes.py:339–350  ·  view source on GitHub ↗
(data: ReadBuffer)

Source from the content-addressed store, hash-verified

337
338
339def read_parse_error(data: ReadBuffer) -> ParseError:
340 err: ParseError = {"line": read_int(data), "column": read_int(data), "message": read_str(data)}
341 tag = read_tag(data)
342 if tag == LITERAL_TRUE:
343 err["blocker"] = True
344 elif tag == LITERAL_FALSE:
345 err["blocker"] = False
346 else:
347 assert tag == LITERAL_NONE
348 if (code := read_str_opt(data)) is not None:
349 err["code"] = code
350 return err
351
352
353class FileRawData:

Callers 1

readMethod · 0.85

Calls 3

read_intFunction · 0.90
read_strFunction · 0.90
read_str_optFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…