Skip to content

Commit 1d7aee6

Browse files
Remove long snippet and add description
1 parent 3e56c78 commit 1d7aee6

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

docs/source/command_line.rst

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -452,19 +452,10 @@ in error messages.
452452
``--no-color-output``
453453
This flag will disable color output in error messages, enabled by default.
454454

455-
``--error-summary``
456-
This flag will show error messages with stats summary,
457-
for example, the following indicates an error summary::
458-
from typing import List
459-
x = [] # type: List[float]
460-
y = [] # type: List[int]
461-
x = y
462-
bad.py:4: error: Incompatible types in assignment (expression has type
463-
"List[int]", variable has type "List[float]")
464-
bad.py:4: note: "List" is invariant -- see
465-
http://mypy.readthedocs.io/en/latest/common_issues.html#variance
466-
bad.py:4: note: Consider using "Sequence" instead, which is covariant
467-
Found 1 error in 1 file (checked 1 source file)
455+
``--no-error-summary``
456+
This flag will show error messages with stats summary, enabled by default.
457+
By default mypy shows a summary line including total number of errors,
458+
number of files with errors, and number of files checked.
468459

469460
.. _incremental:
470461

0 commit comments

Comments
 (0)