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

refactor: fix dangerous default argument #17

Open
wants to merge 1 commit into
base: deepsource
Choose a base branch
from

Conversation

deepsource-autofix[bot]
Copy link

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.

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.
@coveralls
Copy link

coveralls commented Nov 17, 2023

Pull Request Test Coverage Report for Build 6905725855

  • 35 of 41 (85.37%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 80.243%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ema_workbench/analysis/scenario_discovery_util.py 2 3 66.67%
ema_workbench/analysis/prim.py 4 6 66.67%
ema_workbench/analysis/plotting.py 17 20 85.0%
Totals Coverage Status
Change from base Build 6905579363: 0.03%
Covered Lines: 4695
Relevant Lines: 5851

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

1 participant