Setup mypy for fun and profit
Have you ever written Python code and had to dig deep into callstacks to understand what the return type of a function is?
I know I did and unfortunately, it makes me slower overall because I always have to dig through the callstack to understand what I’m dealing with. This also makes the code sensibly more complex given the number of additional checks that need to be implemented to assert a returned value is of an expected type. This is without taking into account unit tests that you need to write to test your assertion.
Muscaw