Skip to content
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

(PYL-W0102) Dangerous default argument #34

Closed
reece opened this issue May 3, 2021 · 1 comment
Closed

(PYL-W0102) Dangerous default argument #34

reece opened this issue May 3, 2021 · 1 comment
Labels
won't fix This will not be worked on

Comments

@reece
Copy link
Member

reece commented May 3, 2021

Description

Do not use a mutable like list or dictionary as a default value to an argument. Python’s default arguments are evaluated once when the function is defined. Using a mutable default argument and mutating it will mutate that object for all future calls to the function as well.

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/biocommons/bioutils/issue/PYL-W0102/occurrences/

@stale
Copy link

stale bot commented Jul 8, 2021

This issue has not had recent activity and is now marked as stale. It will be closed if no further activity occurs. Please comment if you believe the issue is still relevant.

@stale stale bot added the won't fix This will not be worked on label Jul 8, 2021
@stale stale bot closed this as completed Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
won't fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant