@@ -151,7 +151,7 @@ def is_dense(self, chunk_byte_length: int) -> bool:
151151
152152        # Are all non-empty offsets unique? 
153153        if  len (
154-             set ( offset  for  offset , _  in  sorted_offsets_and_lengths  if  offset  !=  MAX_UINT_64 ) 
154+             { offset  for  offset , _  in  sorted_offsets_and_lengths  if  offset  !=  MAX_UINT_64 } 
155155        ) !=  len (sorted_offsets_and_lengths ):
156156            return  False 
157157
@@ -380,8 +380,8 @@ def to_dict(self) -> dict[str, JSON]:
380380            "name" : "sharding_indexed" ,
381381            "configuration" : {
382382                "chunk_shape" : self .chunk_shape ,
383-                 "codecs" : tuple ([ s .to_dict () for  s  in  self .codecs ] ),
384-                 "index_codecs" : tuple ([ s .to_dict () for  s  in  self .index_codecs ] ),
383+                 "codecs" : tuple (s .to_dict () for  s  in  self .codecs ),
384+                 "index_codecs" : tuple (s .to_dict () for  s  in  self .index_codecs ),
385385                "index_location" : self .index_location .value ,
386386            },
387387        }
@@ -477,7 +477,7 @@ async def _decode_partial_single(
477477        )
478478
479479        indexed_chunks  =  list (indexer )
480-         all_chunk_coords  =  set ( chunk_coords  for  chunk_coords , _ , _  in  indexed_chunks ) 
480+         all_chunk_coords  =  { chunk_coords  for  chunk_coords , _ , _  in  indexed_chunks } 
481481
482482        # reading bytes of all requested chunks 
483483        shard_dict : ShardMapping  =  {}
0 commit comments