Dec-18-2019, 03:36 PM
Is there a tool that will analyze Python code and add type annotations to functions? A human would look at comments, the body of a function, and at code that calls a function to infer the types of function arguments. I wonder if this can be automated. The tool would not have to be 100% accurate to be useful as an aid in manually adding type annotations.