2 ms·
Mypy allows that because initial versions of PEP-484 allowed that. This has changed; here's the current wording on the PEP: > This is no longer the recommended
by maleldil 5y ago
Mypy allows that because initial versions of PEP-484 allowed that. This has changed; here's the current wording on the PEP:
> This is no longer the recommended behavior. Type checkers should move towards requiring the optional type to be made explicit.
https://www.python.org/dev/peps/pep-0484/#id29 https://www.python.org/dev/peps/pep-0484/#id29