3.16. Typing Annotate
3.16.1. PyAnnotate
Annotating existing code
http://mypy-lang.blogspot.com/2017/11/dropbox-releases-pyannotate-auto.html
The -w flag means "go ahead, update the file":
$ python3 -m pip install pyannotate
$ python3 -m pyannotate -w myfile.py
3.16.2. Monkeytype
Annotating existing code
$ python3 -m pip install monkeytype
$ python3 -m monkeytype run myfile.py
$ python3 -m monkeytype stub myfile.py
$ python3 -m monkeytype apply myfile.py