pash icon indicating copy to clipboard operation
pash copied to clipboard

remove empty lists as default arguments in functions

Open festutz opened this issue 4 years ago • 1 comments

Let me sketch the problem: Using [] as default argument will only be evaluated once for each function. This is why all function calls will use the same list which is usually not intended. For more details, see e.g. https://nikos7am.com/posts/mutable-default-arguments/

festutz avatar Mar 04 '22 14:03 festutz

Hey all! I would like to work on this. I used ripgrep to find any default list arguments. Will test it today and make a PR.

vagos avatar Oct 31 '23 13:10 vagos