Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: