4 ms·
I really enjoy being able to write about 90-95% of python with type hints, the static checking and IDE autocomplete is fantastic, and the remaining just be like
by kortex 7y ago
I really enjoy being able to write about 90-95% of python with type hints, the static checking and IDE autocomplete is fantastic, and the remaining just be like "ok computer just trust me".
Or when I'm doing data wrangling in jupyter and I never use type hints cause it's all just REPL rapid prototyping and I get autocomplete from the objects.
- raverbashing 7y agoI think type hints make sense in some specific cases. Especially if it's an external API that your code is providing, or for when the usage is not clear. It's good for checking the internal logic, but being optional is important in the python context.