From 6cfc2f9b0e1e76d3a77d4c0239e8f2f08fd357dc Mon Sep 17 00:00:00 2001
From: Alexandru Fikl <alexfikl@gmail.com>
Date: Wed, 11 Jan 2023 17:24:59 +0200
Subject: [PATCH] placate flake8-comprehensions

---
 .../impl/pyopencl/taggable_cl_array.py        | 24 ++++++++++---------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/arraycontext/impl/pyopencl/taggable_cl_array.py b/arraycontext/impl/pyopencl/taggable_cl_array.py
index 0361200..32fa6d7 100644
--- a/arraycontext/impl/pyopencl/taggable_cl_array.py
+++ b/arraycontext/impl/pyopencl/taggable_cl_array.py
@@ -35,17 +35,19 @@ def _construct_untagged_axes(ndim: int) -> Tuple[Axis, ...]:
 
 
 def _unwrap_cl_array(ary: cla.Array) -> Dict[str, Any]:
-    return dict(shape=ary.shape, dtype=ary.dtype,
-                allocator=ary.allocator,
-                strides=ary.strides,
-                data=ary.base_data,
-                offset=ary.offset,
-                events=ary.events,
-                _context=ary.context,
-                _queue=ary.queue,
-                _size=ary.size,
-                _fast=True,
-                )
+    return {
+        "shape": ary.shape,
+        "dtype": ary.dtype,
+        "allocator": ary.allocator,
+        "strides": ary.strides,
+        "data": ary.base_data,
+        "offset": ary.offset,
+        "events": ary.events,
+        "_context": ary.context,
+        "_queue": ary.queue,
+        "_size": ary.size,
+        "_fast": True,
+        }
 
 # }}}
 
-- 
GitLab