"Extract method" refactoring does not generate type hints for the new method arguments #2656
Replies: 2 comments
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
-
Hello, this is an awesome idea! Recently opened the issue #5750 regarding exactly this! If there is a way for me to implement it, I would be happy to give it a try, although I am not certain what part of the code is accessible. At a quick glance, I wasn't able to find the underlying code behind I would also be interested in alternative workflows for streamlined type hinting, although I doubt something would come close to this enhancement, any suggestion is appreciated. |
Beta Was this translation helpful? Give feedback.
-
"Extract method" refactoring is inconvenient, a developer needs to define types of all arguments manually, even if they had been known before the refactoring
As an example
Refactor... -> Extract method for
x + y
generates the following:Now I have to manually define type hints for all the arguments and the function return type.
It would be great if the result was
Beta Was this translation helpful? Give feedback.
All reactions