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

Type annotation and mypy, while better than nothing, is a hack and doesn't always properly work so in a real codebase you'd be using `# type: ignore` quite often even if all of your downstream code is properly type-annotated and mypy-typechecked.

Most importantly though, it does not make Python statically typed, by no means. It just lets you lint stuff in a semantic fashion (which is helpful, no doubt), improves auto-completion and removes the need of listing type requirements in docstrings.



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

Search: