4 ms·
But you don't need the libraries to have type annotations for them to be useful to you. You can use the libraries' classes as types, and type signatures are alr
by StavrosK 6y ago
But you don't need the libraries to have type annotations for them to be useful to you. You can use the libraries' classes as types, and type signatures are already very useful even if you only use them in your code. I agree that they will be even better when morelibraries declare them too, but I find that type annotations are a huge benefit in my own code either way.
- blandflakes 6y agoI think we can agree on that - my point primarily is that: 1. In my own code, they are super helpful 2. I still get really frustrated when I'm calling other libraries (I had this experience when the various typed JSes were fighting it out as well) - in fact for a lot of web-style work that I do MOST of my code is calling a library, which is where I'd get most of the value.
- StavrosK 6y agoSure, I agree with that. More libraries supporting types would be great. I don't know why they don't, it's not like they need to support any Python versions that don't support types... I guess most just haven't gotten around to it.