3.16. Typing Annotate

3.16.1. PyAnnotate

The -w flag means "go ahead, update the file":

$ python3 -m pip install pyannotate
$ python3 -m pyannotate -w myfile.py

3.16.2. Monkeytype

$ python3 -m pip install monkeytype
$ python3 -m monkeytype run myfile.py
$ python3 -m monkeytype stub myfile.py
$ python3 -m monkeytype apply myfile.py