-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
We'd require an explicit optional argument type in cases like this:
def f(x: int = None) -> None:
...
Currently this is accepted by mypy, unless --no-implicit-optional
is used. The idea would be to make --no-implicit-optional
the default, and --implicit-optional
can be used to get back to the current default behavior.
bluetech, hukkin, Gniourf, Zymergen-jvandezande, meshy and 15 moretzaffi, cjw296, lokhman, patrick-csliu, dkazanzhy and 1 more