66from  typing  import  TYPE_CHECKING , NamedTuple , Protocol , runtime_checkable 
77
88if  TYPE_CHECKING :
9-     from  collections .abc  import  AsyncGenerator , Iterable 
9+     from  collections .abc  import  AsyncGenerator , AsyncIterator ,  Iterable 
1010    from  types  import  TracebackType 
1111    from  typing  import  Any , Self , TypeAlias 
1212
@@ -329,16 +329,16 @@ def supports_listing(self) -> bool:
329329        ...
330330
331331    @abstractmethod  
332-     def  list (self ) ->  AsyncGenerator [str ]:
332+     def  list (self ) ->  AsyncIterator [str ]:
333333        """Retrieve all keys in the store. 
334334
335335        Returns 
336336        ------- 
337-         AsyncGenerator [str, None ] 
337+         AsyncIterator [str] 
338338        """ 
339339
340340    @abstractmethod  
341-     def  list_prefix (self , prefix : str ) ->  AsyncGenerator [str ]:
341+     def  list_prefix (self , prefix : str ) ->  AsyncIterator [str ]:
342342        """ 
343343        Retrieve all keys in the store that begin with a given prefix. Keys are returned relative 
344344        to the root of the store. 
@@ -349,11 +349,11 @@ def list_prefix(self, prefix: str) -> AsyncGenerator[str]:
349349
350350        Returns 
351351        ------- 
352-         AsyncGenerator [str, None ] 
352+         AsyncIterator [str] 
353353        """ 
354354
355355    @abstractmethod  
356-     def  list_dir (self , prefix : str ) ->  AsyncGenerator [str ]:
356+     def  list_dir (self , prefix : str ) ->  AsyncIterator [str ]:
357357        """ 
358358        Retrieve all keys and prefixes with a given prefix and which do not contain the character 
359359        “/” after the given prefix. 
@@ -364,7 +364,7 @@ def list_dir(self, prefix: str) -> AsyncGenerator[str]:
364364
365365        Returns 
366366        ------- 
367-         AsyncGenerator [str, None ] 
367+         AsyncIterator [str] 
368368        """ 
369369
370370    async  def  delete_dir (self , prefix : str ) ->  None :
0 commit comments