biocommons / bioutils

provides common tools and lookup tables used primarily by the hgvs and uta packages
Apache License 2.0
21 stars 18 forks source link

(PYL-W0102) Dangerous default argument #34

Closed reece closed 3 years ago

reece commented 3 years ago

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[bot] commented 3 years ago

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.