Skip to content

Commit b2dc022

Browse files
[ruff] Fix all RUF024 (no mutable objects as values in 'dict.fromkeys'
1 parent 375e748 commit b2dc022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class TestClass(object):
533533
)
534534
def test_report_extra_parameters(reporttype: type[reports.BaseReport]) -> None:
535535
args = list(inspect.signature(reporttype.__init__).parameters.keys())[1:]
536-
basekw: dict[str, list[object]] = dict.fromkeys(args, [])
536+
basekw: dict[str, list[object]] = {arg: [] for arg in args}
537537
report = reporttype(newthing=1, **basekw)
538538
assert report.newthing == 1
539539

0 commit comments

Comments
 (0)