File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments