From b725c6e9d01cc176d973e502b6476c0a32f95039 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 14 Sep 2025 16:04:29 +0200 Subject: [PATCH] Unnecessary generator - rewrite as a dict comprehension --- bench/ndarray/compute_dists.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bench/ndarray/compute_dists.py b/bench/ndarray/compute_dists.py index 8aade00c1..f66b58cf2 100644 --- a/bench/ndarray/compute_dists.py +++ b/bench/ndarray/compute_dists.py @@ -36,9 +36,10 @@ blosc2.storage_dflts["contiguous"] = storage.contiguous blosc2.storage_dflts["mode"] = storage.mode -urlpath = dict((aname, None) for aname in ("a", "b", "c")) if persistent: - urlpath = dict((aname, f"{aname}.b2nd") for aname in ("a", "b", "c")) + urlpath = {aname: f"{aname}.b2nd" for aname in ("a", "b", "c")} +else: + urlpath = {aname: None for aname in ("a", "b", "c")} btimes = [] bspeeds = []