From 52db9133a3ce3104d45282e62617d44d94741275 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Fri, 19 Jul 2024 08:58:25 +0300 Subject: [PATCH] ruff: fix C419 unnecessary list comprehension --- meshmode/mesh/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshmode/mesh/processing.py b/meshmode/mesh/processing.py index 9e03f253..7edbcf71 100644 --- a/meshmode/mesh/processing.py +++ b/meshmode/mesh/processing.py @@ -1617,7 +1617,7 @@ def make_mesh_grid( meshes = [] for index in product(*(range(n) for n in shape)): - b = sum([i * o for i, o in zip(index, offset)], offset[0]) + b = sum((i * o for i, o in zip(index, offset)), offset[0]) meshes.append(affine_map(mesh, b=b)) return merge_disjoint_meshes(meshes, skip_tests=skip_tests)