-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid mutable default arguments #553
Conversation
Nice ! was it actually done by a robot ?? |
Looks fine. For anyone wondering the purpose of this, see http://stackoverflow.com/questions/1132941/least-astonishment-and-the-mutable-default-argument |
@Zulko It was indeed! Not really something that I was hiding? 👍 No reason to take the time to go through and manually modify simple, but fairly important best practices that can be automagically fixed. We could have the same service resolve these directly if the integration is setup on the parent repo. Some of these are fairly trivial to change manually, but should probably start being enforced against the master repo. Thoughts? What do you think about adding https://www.quantifiedcode.com/ to the repo? It's free for opensource projects! Unless you want more one-liners to resolve this like |
Any reason why this is closed @mbeacom? |
@Gloin1313 I was uncertain if there were objections to the changes. XD |
@mbeacom I definitely see this PR as a enhancement.. |
LGTM |
The goal of this PR is to remove mutable arguments that are defaulted in methods throughout the codebase.
For information on causation and manual steps to resolution, check out:
https://www.quantifiedcode.com/app/issue_class/3P0qV6OB