5.2. Annotating existing code¶
5.2.1. PyAnnotate
¶
The -w flag means "go ahead, update the file":
$ pip install pyannotate
$ pyannotate -w FILE
5.2.2. monkeytype
¶
$ pip install monkeytype
$ monkeytype run runtests.py
$ monkeytype stub some.module
$ monkeytype apply some.module