@@ -329,17 +329,17 @@ def supports_listing(self) -> bool:
329
329
...
330
330
331
331
@abstractmethod
332
- def list (self ) -> AsyncGenerator [str , None ]:
332
+ async def list (self ) -> AsyncGenerator [str , None ]:
333
333
"""Retrieve all keys in the store.
334
334
335
335
Returns
336
336
-------
337
337
AsyncGenerator[str, None]
338
338
"""
339
- ...
339
+ yield # type: ignore[misc]
340
340
341
341
@abstractmethod
342
- def list_prefix (self , prefix : str ) -> AsyncGenerator [str , None ]:
342
+ async def list_prefix (self , prefix : str ) -> AsyncGenerator [str , None ]:
343
343
"""
344
344
Retrieve all keys in the store that begin with a given prefix. Keys are returned with the
345
345
common leading prefix removed.
@@ -352,10 +352,10 @@ def list_prefix(self, prefix: str) -> AsyncGenerator[str, None]:
352
352
-------
353
353
AsyncGenerator[str, None]
354
354
"""
355
- ...
355
+ yield # type: ignore[misc]
356
356
357
357
@abstractmethod
358
- def list_dir (self , prefix : str ) -> AsyncGenerator [str , None ]:
358
+ async def list_dir (self , prefix : str ) -> AsyncGenerator [str , None ]:
359
359
"""
360
360
Retrieve all keys and prefixes with a given prefix and which do not contain the character
361
361
“/” after the given prefix.
@@ -368,7 +368,7 @@ def list_dir(self, prefix: str) -> AsyncGenerator[str, None]:
368
368
-------
369
369
AsyncGenerator[str, None]
370
370
"""
371
- ...
371
+ yield # type: ignore[misc]
372
372
373
373
def close (self ) -> None :
374
374
"""Close the store."""
0 commit comments