Python Anti-Pattern: Default Mutable Arguments
@SourceryAI found a bad habit I didn’t know I had: def f(names: list=[]):. This would be nearly impossible to debug.
Python Anti-Pattern: Default Mutable Arguments
@SourceryAI found a bad habit I didn’t know I had: def f(names: list=[]):. This would be nearly impossible to debug.