Skip to content

Commit

Permalink
ruff: fix C419 unnecessary list comprehension
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl authored and inducer committed Jul 19, 2024
1 parent 4383375 commit 52db913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshmode/mesh/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 52db913

Please sign in to comment.