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.
We'd require an explicit optional argument type in cases like this:
Currently this is accepted by mypy, unless
--no-implicit-optionalis used. The idea would be to make--no-implicit-optionalthe default, and--implicit-optionalcan be used to get back to the current default behavior.