Add typing annotations on local variables (python 3.6)
To get a strongly typed code, we can use typing annotations and the typing module.
With python 3.5, we need to use comments to type local variables. With python 3.6, we can use annotations to type local variables.
To type-check the code before run-time, we can use our IDE integrated type checking, or better :
A video about typing : https://hooktube.com/watch?v=QCGwDOk-pIs
To add static typing in the code automatically, we can use https://pypi.org/project/MonkeyType/ (require Python 3.6).