Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/source/command_line.rst
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ The following flags adjust how mypy handles values of type ``None``.
.. warning::

``--no-strict-optional`` is evil. Avoid using it and definitely do
not use it without understanding what it does.
not use it without understanding what it does. See
:ref:`no-strict-optional` for more details.


.. _configuring-warnings:
Expand Down
7 changes: 4 additions & 3 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -618,15 +618,16 @@ section of the command line docs.
:type: boolean
:default: True

Effectively disables checking of optional
If set to ``False``, effectively disables checking of optional
types and ``None`` values. With this option, mypy doesn't
generally check the use of ``None`` values -- it is treated
as compatible with every type.

.. warning::

``strict_optional = false`` is evil. Avoid using it and definitely do
not use it without understanding what it does.
``strict_optional = False`` is evil. Avoid using it and definitely do
not use it without understanding what it does. See
:ref:`no-strict-optional` for more details.


Configuring warnings
Expand Down
Loading