2 ms·
> Types hints are a terrible non-pythonic kludge to solve a people problem in code. I have a love/hate relationship with type hinting in Python. I've been usin
by tomnipotent 8y ago
> Types hints are a terrible non-pythonic kludge to solve a people problem in code.
I have a love/hate relationship with type hinting in Python. I've been using them for about 2 years, and it still just feels... unnatural. I usually add enough so that my IDE (PyCharm) has better autocomplete and that any Sphinx generated docs have sufficient coverage of types I may have missed when adding @params.
- antt 8y agoI have mostly a hate relationship with them, because the people who use them do not write python. They write c# or java in python. And you shouldn't need an IDE with a scripting language. That one of the main selling points for type hints has been "Your IDE will do things for you!" is a warning that this is a bad move. Again python is not java, and it shouldn't be trying to be java.