sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

inlining of superfluous var

Open bwagner opened this issue 2 years ago • 0 comments

The inlining of a is not suggested:

def prepend(a, x):
    a = "*" * x + a
    return a

However, when providing the type str the refactoring is suggested:

def prepend(a:str, x):
    a = "*" * x + a
    return a

bwagner avatar Jun 13 '23 08:06 bwagner