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

Function flush_errors

mypy/test/testerrorstream.py:33–36  ·  view source on GitHub ↗
(filename: str | None, msgs: list[str], serious: bool)

Source from the content-addressed store, hash-verified

31 logged_messages: list[str] = []
32
33 def flush_errors(filename: str | None, msgs: list[str], serious: bool) -> None:
34 if msgs:
35 logged_messages.append("==== Errors flushed ====")
36 logged_messages.extend(msgs)
37
38 sources = [BuildSource("main", "__main__", "\n".join(testcase.input))]
39 try:

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
extendMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…