Open Anselmoo opened 1 year ago
In addition to that, would it make sense for default-mutable-arg to change from:
From:
def func(hats: list = None):
if hats is None:
hats = []
change(hats)
to:
def func(hats: list = None):
hats = hats or []
change(hats)
Checklist
Description
Sourcery
already suggests dependencies as one-liners. There might be a new one for creating optional listCode Before
In case you have work in your functions or class with iterators.
Code After