Automatically annotate types for automatically created methods and parameters

Answered

I am using Python3 and type annotations in all of my code.

Using the quickfix (alt-enter) on undefined methods and parameters will create the appropriate method or parameter, but PyCharm will not also automatically add type annotations when the type is known (or can be inferred) from context. Is there any way to turn this on? I'm used to this behavior from other Jetbrains IDEs and I really miss it in PyCharm.

 

Thanks, 

Will

2 comments
Comment actions Permalink

Hi Willismorse! Unfortunately there's no such feature right now. Feel free to create a feature request in out bug tracker.

0
Comment actions Permalink

Thanks, Pavel. I'll do that.

 

- Will

0

Please sign in to leave a comment.