Skip to content

Commit e9f414b

Browse files
committed
back to asynciterators
1 parent cd02e97 commit e9f414b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/zarr/storage/logging.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from zarr.storage.wrapper import WrapperStore
1212

1313
if 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):

0 commit comments

Comments
 (0)