Re:Type hints cheat sheet (Python 3)
by kungtotte on Wednesday December 12, 2018 @03:29AM
(#18662291)
Type hints are more about proving correctness and catching errors early. If your code expects ints and all of a sudden it gets floats there is probably something wrong somewhere else, and the type checker tells you about it since Python would probably just chug along with floats instead of ints.
[ Parent
| on HN ]
There are no comments on this comment yet.