Hacker News new | ask | show | jobs
by alexwaygood 18 hours ago
I'd honestly argue that an annotated-but-unchecked codebase has negative documentary value -- it's so, so easy for the annotations to be incorrect or out-of-date if they're not checked in CI. So they often end up just being misleading and confusing
1 comments

They do indicate intent, which can be useful. If possible I’d rather have that than docstring fields as it’s a start and the structure makes it easier to process and / or hide. For simple types anyway.

But if you start writing complex unions or typed dicts and nothing’s checked then yeah.