Skip to content
Latchkey

mypy --no-error-summary: Drop the Tally Line

mypy --no-error-summary removes the final "Found N errors" / "Success" line from the output.

When another tool parses mypy output line by line, the summary can get in the way. This flag drops just that line while keeping the per-error messages.

What it does

mypy --no-error-summary suppresses the trailing tally line so the output is only the individual error lines (or nothing on success). It does not change the exit code: still 0 on clean, 1 on errors.

Common usage

Terminal
# feed only error lines into a reporter
mypy --no-error-summary --show-error-codes src/
# combine with a per-line output format
mypy --no-error-summary --no-color-output src/ | tee mypy.txt

Options

FlagWhat it does
--no-error-summarySuppress the final tally line
--no-color-outputStrip ANSI color for clean log files
--show-error-codesKeep codes so parsed lines are categorizable
--error-summaryThe default, re-enables the summary

In CI

Use --no-error-summary together with --no-color-output when piping mypy into a custom annotator or artifact file, so stray color codes and the summary do not confuse the parser. Keep gating on the exit code regardless of the summary being shown.

Common errors in CI

Dropping the summary while still grepping for "Found N errors" will make every run look clean to the grep; switch the gate to the exit code. If colored output leaks escape sequences into your artifact, add --no-color-output (or set NO_COLOR).

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →