File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111from zarr .storage .wrapper import WrapperStore
1212
1313if TYPE_CHECKING :
14- from collections .abc import AsyncGenerator , Generator , Iterable
14+ from collections .abc import AsyncIterator , Generator , Iterable
1515
1616 from zarr .abc .store import ByteRangeRequest
1717 from zarr .core .buffer import Buffer , BufferPrototype
@@ -205,19 +205,19 @@ async def set_partial_values(
205205 with self .log (keys ):
206206 return await self ._store .set_partial_values (key_start_values = key_start_values )
207207
208- async def list (self ) -> AsyncGenerator [str , None ]:
208+ async def list (self ) -> AsyncIterator [str ]:
209209 # docstring inherited
210210 with self .log ():
211211 async for key in self ._store .list ():
212212 yield key
213213
214- async def list_prefix (self , prefix : str ) -> AsyncGenerator [str , None ]:
214+ async def list_prefix (self , prefix : str ) -> AsyncIterator [str ]:
215215 # docstring inherited
216216 with self .log (prefix ):
217217 async for key in self ._store .list_prefix (prefix = prefix ):
218218 yield key
219219
220- async def list_dir (self , prefix : str ) -> AsyncGenerator [str , None ]:
220+ async def list_dir (self , prefix : str ) -> AsyncIterator [str ]:
221221 # docstring inherited
222222 with self .log (prefix ):
223223 async for key in self ._store .list_dir (prefix = prefix ):
You can’t perform that action at this time.
0 commit comments