News for hackers. Stuff that matters.
Re:Show HN: Gawain – Require type hints on all Python variables by KaiserPro on Sunday November 15, 2026 @08:03AM (#50506644)
I have written for a similar amount of time, and I think I've just got used to it.

The classic is pulling in json or some other structured data and something not being the type you expect. The error happens way down the line, rather than at import, because why would you do a full validation every time you use JSON right?

I think typehinting is pretty useless in python. Its a nice idea and if your IDE is setup for it, can provide useful information that you're doing something wrong. But its requires lots of tooling and setup to provide useful signal, and is optional.

There are no comments on this comment yet.