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

Function write_errors

mypy/cache.py:561–573  ·  view source on GitHub ↗
(data: WriteBuffer, errs: list[ErrorTuple])

Source from the content-addressed store, hash-verified

559
560
561def write_errors(data: WriteBuffer, errs: list[ErrorTuple]) -> None:
562 write_tag(data, LIST_GEN)
563 write_int_bare(data, len(errs))
564 for path, line, column, end_line, end_column, severity, message, code in errs:
565 write_tag(data, TUPLE_GEN)
566 write_str_opt(data, path)
567 write_int(data, line)
568 write_int(data, column)
569 write_int(data, end_line)
570 write_int(data, end_column)
571 write_str(data, severity)
572 write_str(data, message)
573 write_str_opt(data, code)
574
575
576def read_errors(data: ReadBuffer) -> list[ErrorTuple]:

Callers 1

writeMethod · 0.85

Calls 4

lenFunction · 0.85
write_str_optFunction · 0.85
write_intFunction · 0.85
write_strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…