3 ms·
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 somethin
by kungtotte 8y ago
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.