@@ -361,7 +361,7 @@ async def _read_key(
361361 _read_key ,
362362 config .get ("async.concurrency" ),
363363 )
364- chunk_array_batch = await self .decode_batch (
364+ chunk_array_decoded = await self .decode_batch (
365365 [
366366 (chunk_bytes , chunk_spec )
367367 for chunk_bytes , (_ , chunk_spec , _ , _ ) in zip (
@@ -370,19 +370,20 @@ async def _read_key(
370370 ],
371371 )
372372
373- chunk_array_batch = [
373+ chunk_array_merged = [
374374 self ._merge_chunk_array (
375375 chunk_array , value , out_selection , chunk_spec , chunk_selection , drop_axes
376376 )
377377 for chunk_array , (_ , chunk_spec , chunk_selection , out_selection ) in zip (
378- chunk_array_batch , batch_info , strict = False
378+ chunk_array_decoded , batch_info , strict = False
379379 )
380380 ]
381+ chunk_array_batch : list [NDBuffer | None ] = []
381382 for chunk_array , (_ , chunk_spec , _ , _ ) in zip (
382- chunk_array_batch , batch_info , strict = False
383+ chunk_array_merged , batch_info , strict = False
383384 ):
384385 if chunk_array is None :
385- chunk_array_batch .append (None )
386+ chunk_array_batch .append (None ) # type: ignore[unreachable]
386387 else :
387388 if not write_empty_chunks and chunk_array .all_equal (chunk_spec .fill_value ):
388389 chunk_array_batch .append (None )
0 commit comments