Re:A Failed Experiment with Python Type Annotations
by perlgeek on Wednesday June 12, 2019 @03:02AM
(#20162394)
I think the premise of this blog post is misguided.
Yes, there are two things about introducing types that the author finds annoying. So don't do those two things, and use type annotations for all the rest.
The type annotation system and mypy are designed to give you benefits even if you don't fully annotate everything -- that's the starting point of nearly all existing python code bases.
Yes, there are two things about introducing types that the author finds annoying. So don't do those two things, and use type annotations for all the rest.
The type annotation system and mypy are designed to give you benefits even if you don't fully annotate everything -- that's the starting point of nearly all existing python code bases.