Hacker News new | ask | show | jobs
by Jiejeing 1558 days ago
After many years of writing and maintaining Python code, I respectfully disagree with your statement. The marginal reading overhead that type annotations bring (which can be alleviated by specific color schemes) dwarfs the ability to have a reasonable expectation of the code base trustworthiness.
2 comments

Also just the ability to understand a code base, exploring libraries in dynamic python is super painful
PyCharm is really good when exploring Python. But this made browsing Python code on Github much more difficult. I've pulled down some project more than once just to get PyCharm's type inference and documentation. With type annotations it makes just reading the file without an IDE much nicer.
A Python code bases trustworthiness depends on it's unit tests. If you are using type hints for that, you have seriously gone wrong.