Skip to content

Conversation

@deepsource-autofix
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.

2 participants