News for hackers. Stuff that matters.
Re:Python Is Eating the World by yegle on Monday August 12, 2019 @12:07PM (#20676726)
The first problem is a valid problem in Python: it essentially don't have a "char" type, instead it only have strings with size 1.

This actually ruined type annotation in Python: you can't properly annotate a function to accept anything iterable except string.

https://github.com/python/mypy/issues/4334 is a FR to at least check it with mypy.

Re:Python Is Eating the World by rcfox on Monday August 12, 2019 @01:06PM (#20677421)
It's not a perfect solution, but you could perhaps hack it with @overload to say that the "str" version returns NoReturn.