Sure, there are some projects out there that can help out. Instagram developed the MonkeyType tool to pick up runtime type information. These are output as stubs files, but you can use the tools included to apply those to your source files as inline annotations, or use the retype project to do the same. Dropbox has a similar tool called pyannotate; this tool can generate either Python 2 type …
