News for hackers. Stuff that matters.
Re:Type hints – a mediocre programmer's reaction (2015) by LyndsySimon on Thursday March 17, 2016 @04:31PM (#11307357)
The public interface of a library isn't where type hints will shine, and I'm not sure why someone would think they would.

Type hints are going to be awesome for nailing down the behavior of the core parts of your business application. I think of it more like writing good tests than anything else.

Like everything else in development; 80% of the problem is choosing the right tool for the job.

Re:Type hints – a mediocre programmer's reaction (2015) by jstimpfle on Thursday March 17, 2016 @06:02PM (#11307986)
This. Types, except for those built-in to the language, are not for APIs. But they can be great for internals if you don't overdo it.

For example, Perl6 has Subset (types), which is a great feature. You could make a subset type of Str (a built-in type) which contains only strings that match a given pattern (e.g. URLs, user-ids, or shell-safe strings) and still benefit from all generic string code.

Re:Type hints – a mediocre programmer's reaction (2015) by nazgul17 on Thursday March 17, 2016 @07:48PM (#11308642)
I think there is such option in Python ABCs.
Re:Type hints – a mediocre programmer's reaction (2015) by striking on Thursday March 17, 2016 @04:46PM (#11307460)
But having every library have type hints means your entire program could be provable. Business logic doesn't make up very much of most applications (at least, not as much as the libraries it's built on).

You're right, though. Python doesn't seem to be made for applications that would benefit from being provably compiled.