Add field to class - missing "fix all" option

Answered

There used to be an option to "Fix all" when Alt+Enter on unused parameter in class __init__. It's missing in version 2019.1. So now we have to Alt+Enter on each parameter to add as field.

Is it intended? Why so? Is it possible to have it back?

1
3 comments

I see the 'fix all' option under 'remove parameter', but there used to be one under 'add field' as well.

This is v2020.1 which doesn't have the option.

I had taken a screenshot in a previous version for a StackOverflow answer back in 2018, but I'm not entirely sure what version I was using at that time.  It has the option present.

Is this intentional or are we seeing a bug?

0

Please sign in to leave a comment.