Jakob Guldberg Aaes
Jakob Guldberg Aaes

Reputation: 844

Refactoring function arguments with elpy

I am getting more and more used to working with elpy and damn it is amazing! However I can't seem to utilize the `elpy-refactor-rename' to also include correction in function input e.g.

def mydef(a,b,c):
  return a+b

res = mydef(1,2,3)

I want to refactor mydef to

def mydef(a,b):
  return a+b

res = mydef(1,2)

The project I am working have a lot of unused arguments and something like this would tremendously help me refactor it all.

Upvotes: 0

Views: 140

Answers (0)

Related Questions