News for hackers. Stuff that matters.
Re:Python type hints may not be not for me in practice by rrr_oh_man on Wednesday November 27, 2024 @05:55AM (#42255004)
What did you end up choosing & why?
Re:Python type hints may not be not for me in practice by robjwells on Wednesday November 27, 2024 @06:17AM (#42255130)
It's only a personal side project and I have a good handle on the untyped modules in question, so in the end I suppressed most of the errors with `# type:ignore` and friends.

I'd reconsider that if I was doing more than the odd bug fix on the project. I still like Python, and started using type hints early, but there's enough added friction to make me question using them in the future.

I imagine on big projects the benefit is clearer.

Re:Python type hints may not be not for me in practice by rrr_oh_man on Wednesday November 27, 2024 @11:13AM (#42257169)
Thanks for sharing!

Asking because I was really, really annoyed by the non-helpfulness of the type hints in practice, contrary to the theory.