-
Notifications
You must be signed in to change notification settings - Fork 301
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
Remove all instances of mutable objects (e.g. empty lists or dictionaries) as default parameter values #5169
Labels
Comments
bari12
added
Core & Internals
enhancement
Overview
Used for overview issues, linking to other issues
labels
Jan 20, 2022
Hey Can I work on this ? |
Hi @chinmaym07 yes, please go ahead. I would suggest to go module by module, starting with the ones in https://github.com/rucio/rucio/tree/master/lib/rucio/core |
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 16, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 18, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 18, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 18, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 22, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 23, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 23, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 23, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 24, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 24, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 24, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 26, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 26, 2024
erlingstaff
added a commit
to erlingstaff/rucio
that referenced
this issue
Apr 26, 2024
bari12
pushed a commit
that referenced
this issue
May 10, 2024
bari12
pushed a commit
that referenced
this issue
May 10, 2024
bari12
pushed a commit
that referenced
this issue
May 10, 2024
bari12
pushed a commit
that referenced
this issue
May 10, 2024
bari12
pushed a commit
that referenced
this issue
May 10, 2024
bari12
pushed a commit
that referenced
this issue
May 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Motivation
Read Python Mutable Defaults Are The Source of All Evil. The likelihood of this anti-pattern is low, but given the magnitude, it might be worth removing all such instances.
Modification
Identify all instances with
pylint --disable=all --enable=W0102 lib/rucio/
. UseNone
as default value, but add type hints and initialise the parameter in the body. For example:rucio/lib/rucio/core/rule.py
Line 735 in d19db9e
Should become:
The text was updated successfully, but these errors were encountered: