MCPcopy
hub / github.com/python/mypy / write_parse_error

Function write_parse_error

mypy/nodes.py:328–336  ·  view source on GitHub ↗
(data: WriteBuffer, err: ParseError)

Source from the content-addressed store, hash-verified

326
327
328def write_parse_error(data: WriteBuffer, err: ParseError) -> None:
329 write_int(data, err["line"])
330 write_int(data, err["column"])
331 write_str(data, err["message"])
332 if (blocker := err.get("blocker")) is not None:
333 write_bool(data, blocker)
334 else:
335 write_tag(data, LITERAL_NONE)
336 write_str_opt(data, err.get("code"))
337
338
339def read_parse_error(data: ReadBuffer) -> ParseError:

Callers 1

writeMethod · 0.85

Calls 4

write_intFunction · 0.90
write_strFunction · 0.90
write_str_optFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…