News for hackers. Stuff that matters.
Re:MonkeyType: A system for Python that automatically genera... by resoluteteeth on Saturday March 21, 2020 @08:41AM (#22646139)
Have you actually spent time adding type annotations to existing python code? In my experience it's a huge pain compared to other languages. Documentation is sloppy about types because people aren't used to worrying about them, so even looking at the code it's really hard to even determine the actual types of things without just running it and poking around.
Re:MonkeyType: A system for Python that automatically genera... by Browun on Saturday March 21, 2020 @09:41AM (#22646407)
Not sure why the initial tone of your response is quite so dismissive. But I do work with Python on a daily basis, even though this shouldn't be the deciding factor on the validity of any point. Discuss the point, not the individual, if it's so easy to disprove. It seems that you're talking about poorly documented code, not how type checks effect this. Python code should have at least docstrings for types, or a scrawl with pen and paper describing this. If not, this is a failing of the project, and it's codebase. Not something you should rely on an outside tool to fix.
Re:MonkeyType: A system for Python that automatically genera... by ggregoire on Saturday March 21, 2020 @02:10PM (#22648456)
That's exactly my experience.