| 
21 | 21 | 
 
  | 
22 | 22 | # typing ---------------------------------------------------------  | 
23 | 23 | 
 
  | 
24 |  | -from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, List,  | 
25 |  | -                    NoReturn, Optional, Pattern, Sequence, Tuple, Union, cast, TYPE_CHECKING)  | 
 | 24 | +from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, Iterator, List,  | 
 | 25 | +                    Optional, Pattern, Sequence, Tuple, Union, cast, TYPE_CHECKING)  | 
26 | 26 | if TYPE_CHECKING:  | 
27 | 27 |     from git.remote import Remote  | 
28 | 28 |     from git.repo.base import Repo  | 
@@ -996,7 +996,7 @@ def list_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> 'IterableList':  | 
996 | 996 |         return out_list  | 
997 | 997 | 
 
  | 
998 | 998 |     @classmethod  | 
999 |  | -    def iter_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> NoReturn:  | 
 | 999 | +    def iter_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> Iterator[TBD]:  # type to be compatible with subtypes e.g. Remote  | 
1000 | 1000 |         """For more information about the arguments, see list_items  | 
1001 | 1001 |         :return:  iterator yielding Items"""  | 
1002 | 1002 |         raise NotImplementedError("To be implemented by Subclass")  | 
 | 
0 commit comments