Hacker News new | ask | show | jobs
by masklinn 2 days ago
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.