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 #8

Open
westonplatter opened this issue Mar 9, 2021 · 1 comment
Open

(PYL-W0102) Dangerous default argument #8

westonplatter opened this issue Mar 9, 2021 · 1 comment

Comments

@westonplatter
Copy link
Owner

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 15 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/westonplatter/ledgerx-python/issue/PYL-W0102/occurrences/

@westonplatter
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant