4 ms·
How about post 3.5 type hints?
by snypox 7y ago
How about post 3.5 type hints?
- jchw 7y agoEvery time I mention typing in Python, people point out the existence of type hints and type checkers. However, I’ve yet to be able to meaningfully use one in practice. I have used MyPy but it didn’t offer nearly as much benefit as say, TypeScript, and brought problems of its own. There’s been some work done but for example, Django middleware is problematic here. A lot of Pythonic code would be extremely challenging to actually cover with robust typechecking. Not to mention, a lot of software treats type hints very differently. PyCharm is able to do powerful inference that MyPy can’t do.