Skip to content

Commit 487b736

Browse files
authored
Remove advice for upgrading from 0.600 (#13441)
More generally, we shouldn't be advising use of --no-strict-optional
1 parent 3aaa7a7 commit 487b736

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/source/common_issues.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,6 @@ including imports or docstrings) has the effect of ignoring the *entire* module.
197197
198198
foo.bar()
199199
200-
Unexpected errors about 'None' and/or 'Optional' types
201-
------------------------------------------------------
202-
203-
Starting from mypy 0.600, mypy uses
204-
:ref:`strict optional checking <strict_optional>` by default,
205-
and the ``None`` value is not compatible with non-optional types.
206-
It's easy to switch back to the older behavior where ``None`` was
207-
compatible with arbitrary types (see :ref:`no_strict_optional`).
208-
You can also fall back to this behavior if strict optional
209-
checking would require a large number of ``assert foo is not None``
210-
checks to be inserted, and you want to minimize the number
211-
of code changes required to get a clean mypy run.
212-
213200
Issues with code at runtime
214201
---------------------------
215202

0 commit comments

Comments
 (0)