Re:Python type hints may not be not for me in practice
by gikkman on Thursday November 28, 2024 @02:55AM
(#42263417)
This is my approach too. A kind of "relaxed" typing I often call it. Just knowing what a function expects and returns helps a lot, what each element of a tuple is, or what a list contains. Before type hints, I used to not enjoy Python at all, but these days I find it fun. The few times I spend time pondering about how to type things are greatly outweighed by the time saved of not having to research what type a particular variable is.
[ Parent
| on HN ]
There are no comments on this comment yet.