summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-05-08 18:31:38 +0100
committeryobmod <yobmod@gmail.com>2021-05-08 18:31:38 +0100
commit37cef2340d3e074a226c0e81eaf000b5b90dfa55 (patch)
tree9867f5a8b543000e56c70860ad59637d1fb33bbe /git/util.py
parent6a2f5d05f4a8e3427d6dd2a5981f148a9f6bef84 (diff)
downloadgitpython-37cef2340d3e074a226c0e81eaf000b5b90dfa55.tar.gz
flake8 fixes
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/git/util.py b/git/util.py
index af499028..558be1e4 100644
--- a/git/util.py
+++ b/git/util.py
@@ -21,8 +21,8 @@ from urllib.parse import urlsplit, urlunsplit
# typing ---------------------------------------------------------
-from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, List,
- NoReturn, Optional, Pattern, Sequence, Tuple, Union, cast, TYPE_CHECKING)
+from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, Iterator, List,
+ Optional, Pattern, Sequence, Tuple, Union, cast, TYPE_CHECKING)
if TYPE_CHECKING:
from git.remote import Remote
from git.repo.base import Repo
@@ -996,7 +996,8 @@ class Iterable(object):
return out_list
@classmethod
- def iter_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> NoReturn:
+ def iter_items(cls, repo: 'Repo', *args: Any, **kwargs: Any) -> Iterator[TBD]:
+ # return typed to be compatible with subtypes e.g. Remote
"""For more information about the arguments, see list_items
:return: iterator yielding Items"""
raise NotImplementedError("To be implemented by Subclass")