3 ms·
> It's not just comments. It's also a hint for your IDE to display better autocomplete options. Ah yes, autocomplete is another benefit of machine-readable typ
by pansa2 2y ago
> It's not just comments. It's also a hint for your IDE to display better autocomplete options.
Ah yes, autocomplete is another benefit of machine-readable type hints. OTOH there's an argument that another IDE feature, informational pop-ups, would be better if they paid more attention to comments and less to type hints:
https://discuss.python.org/t/a-more-useful-and-less-divisive-future-for-typing/34225/32 https://discuss.python.org/t/a-more-useful-and-less-divisive...