sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.5k stars 65 forks source link

inlining of superfluous var #355

Open bwagner opened 1 year ago

bwagner commented 1 year ago

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