http://rocka.co
xergioalex
Less cognitive load needed to work with our code. The types of parameters and return values are clearly stated and verified. No guessing, and no surprises.
Realize mistakes early. If we return the wrong type, forget that a variable may be None, or accidentally redeclare a variable, the type checker will tell us.
Avoid trivial unit tests. Type checking avoids the need to write and maintain trivial unit tests.
Basic Types:
int, str, dict, list, set, float etc.
Advanced typing introduced in python 3.5
INTEGRATING MYPY TO DEVELOPMENT FLOW
http://rocka.co
xergioalex