chore: adhere to ruff's RUF rules, 2nd try (#2420)
* chore: adhere to ruff's `RUF` rules, 2nd try closes #2382
This commit is contained in:
parent
d78f6a1f9e
commit
daa1b5a313
13 changed files with 36 additions and 28 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import functools
|
||||
import importlib
|
||||
import json
|
||||
import operator
|
||||
from typing import Dict, List
|
||||
|
||||
import pytest
|
||||
|
|
@ -24,7 +26,9 @@ def wallet_fixtures_from_json(path) -> List["WalletTest"]:
|
|||
fn_tests = _tests_for_function(funding_sources, fn_name, fn)
|
||||
_merge_dict_of_lists(tests, fn_tests)
|
||||
|
||||
all_tests = sum([tests[fs_name] for fs_name in tests], [])
|
||||
all_tests: list["WalletTest"] = functools.reduce(
|
||||
operator.iadd, [tests[fs_name] for fs_name in tests], []
|
||||
)
|
||||
return all_tests
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue