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

Function show_messages

mypy/main.py:257–264  ·  view source on GitHub ↗
(
    messages: list[str], f: TextIO, formatter: util.FancyFormatter, options: Options
)

Source from the content-addressed store, hash-verified

255
256
257def show_messages(
258 messages: list[str], f: TextIO, formatter: util.FancyFormatter, options: Options
259) -> None:
260 for msg in messages:
261 if options.color_output:
262 msg = formatter.colorize(msg)
263 f.write(msg + "\n")
264 f.flush()
265
266
267# Make the help output a little less jarring.

Callers 2

mainFunction · 0.85
flush_errorsFunction · 0.85

Calls 3

colorizeMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…