11.11. Annotating Existing Code

11.11.1. PyAnnotate

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

$ pip install pyannotate
$ pyannotate -w FILE

11.11.2. monkeytype

$ pip install monkeytype
$ monkeytype run runtests.py
$ monkeytype stub some.module
$ monkeytype apply some.module