Skip to content

Commit 0b32309

Browse files
improve documentation
1 parent 9e98209 commit 0b32309

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

docs/source/command_line.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ of the above sections.
768768

769769
.. option:: --disable-error-code
770770

771-
This flag allows disabling one or multiple error codes globally.
771+
This flag disables one or multiple error codes globally.
772772
See :ref:`error-codes` for more information.
773773

774774
.. code-block:: python
@@ -783,7 +783,7 @@ of the above sections.
783783
784784
.. option:: --enable-error-code
785785

786-
This flag allows enabling one or multiple error codes globally.
786+
This flag enables one or multiple error codes globally.
787787
See :ref:`error-codes` for more information.
788788

789789
Note: This flag will override disabled error codes from the
@@ -803,19 +803,22 @@ of the above sections.
803803

804804
This flag enables all of the error codes for mypy,
805805
including the optional ones that are off by default.
806-
See :ref:`error-codes` for more information.
806+
See :ref:`error-codes` and :ref:`error-codes-optional`
807+
for more information.
807808

808809
This flag will override disabled error codes from the
809810
:option:`--disable-error-code <mypy --disable-error-code>` flag.
810811

811812
Note that future releases of mypy will likely introduce more error codes,
812-
so the effective behavior of this flag will change from release to release.
813+
so the effective result of using this flag will change from release to
814+
release.
813815

814-
While often useful, this flag will enable **all** error codes,
815-
including those that may be experimental, wrongheaded, or contradictory.
816+
While often useful, keep in mind that this flag will enable **all** error
817+
codes, including any that may be experimental, wrongheaded, or
818+
contradictory.
816819

817-
It is not the same as enabling all checks that mypy could perform;
818-
for example, :option:`--strict-bytes` is not enabled by this flag.
820+
Enabling all codes is not the same as enabling all checks that mypy could
821+
perform; for example, :option:`--strict-bytes` is not enabled by this flag.
819822

820823
.. _configuring-error-messages:
821824

0 commit comments

Comments
 (0)