Skip to content

Commit 14f766a

Browse files
committed
list comprehension instead of map
1 parent 6234e4d commit 14f766a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/prepare_to_deploy.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ def filter_test_summaries(tests: Dict[str, List[Dict[str, Any]]]) -> Dict[str, L
2525
for partner in ["bioimageio", [p for p in tests if p != "bioimageio"]]: # process 'bioimageio' first
2626
for summary in tests[partner]:
2727
key = tuple(
28-
map(
29-
lambda k: str(summary.get(k)),
30-
(
28+
[
29+
str(summary.get(k))
30+
for k in (
3131
"bioimageio_spec_version",
3232
"bioimageio_core_version",
3333
"name",
3434
"status",
3535
"error",
3636
"warnings",
3737
"nested_errors",
38-
),
39-
)
38+
)
39+
]
4040
)
4141
if key in unique_tests:
4242
continue

0 commit comments

Comments
 (0)