News for hackers. Stuff that matters.
Re:Ask HN: Do you have any evidence that agentic coding works? by maleldil on Wednesday January 21, 2026 @08:42AM (#46705598)
> I'm slowly accepting that Python's optional typing is mistake with AI agents

Don't make it optional, then. Use pyright or mypy in strict mode. Make it part of your lint task, have the agent run lint often, forbid it from using `type: ignore`, and review every `Any` and `cast` usage.

If you're using CI, make a type error cause the job to fail.

It's not the same as using a language with a proper type system (e.g. Rust), but it's a big step in the right direction.

There are no comments on this comment yet.