News for hackers. Stuff that matters.
Re:What Have We Forgotten? by sgarland on Wednesday January 29, 2025 @08:54AM (#42864888)
Agreed. I caught a bug in Python code I wrote yesterday by adding a typehint to a variable in a branch that has never been executed. MyPy immediately flagged it, and I fixed it. Never had to watch it fail.

I put typehints on everything in Python, even when it looks ridiculous. I treat MyPy errors as show-stoppers that must be fixed, not ignored. This works well for me.

There are no comments on this comment yet.