Skip to content

Commit 8066787

Browse files
remember that I was supposed to mention this in --strict
1 parent ad5dac3 commit 8066787

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/source/command_line.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,10 @@ of the above sections.
754754
strict will catch type errors as long as intentional methods like type ignore
755755
or casting were not used.)
756756

757-
Note: the :option:`--warn-unreachable` flag
758-
is not automatically enabled by the strict flag.
757+
Note: the :option:`--warn-unreachable` flag, among others, is not
758+
enabled by the strict flag. If you are interested in enabling even more
759+
useful checks, you may be interested in :option:`--enable-all-error-codes`
760+
and/or :option:`--enable-error-code`.
759761

760762
The strict flag does not take precedence over other strict-related flags.
761763
Directly specifying a flag of alternate behavior will override the
@@ -819,6 +821,9 @@ of the above sections.
819821

820822
Enabling all codes is not the same as enabling all checks that mypy could
821823
perform; for example, :option:`--strict-bytes` is not enabled by this flag.
824+
However, :option:`--strict` and :option:`--enable-all-error-codes` used in
825+
tandem should be sufficient to get you virtually every useful check mypy
826+
can perform.
822827

823828
.. _configuring-error-messages:
824829

0 commit comments

Comments
 (0)