Skip to content

Commit fd4d4d8

Browse files
committed
Look at, silence instances of bugbear B023
1 parent 9f05f72 commit fd4d4d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arraycontext/impl/pytato/compile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ def _get_arg_id_to_arg_and_arg_id_to_descr(args: Tuple[Any, ...],
152152
arg_id_to_descr[arg_id] = ScalarInputDescriptor(np.dtype(type(arg)))
153153
elif is_array_container_type(arg.__class__):
154154
def id_collector(keys, ary):
155-
arg_id = (kw,) + keys
156-
arg_id_to_arg[arg_id] = ary
157-
arg_id_to_descr[arg_id] = LeafArrayDescriptor(np.dtype(ary.dtype),
158-
ary.shape)
155+
arg_id = (kw,) + keys # noqa: B023
156+
arg_id_to_arg[arg_id] = ary # noqa: B023
157+
arg_id_to_descr[arg_id] = LeafArrayDescriptor( # noqa: B023
158+
np.dtype(ary.dtype), ary.shape)
159159
return ary
160160

161161
rec_keyed_map_array_container(id_collector, arg)

0 commit comments

Comments
 (0)