From 37cef2340d3e074a226c0e81eaf000b5b90dfa55 Mon Sep 17 00:00:00 2001 From: yobmod Date: Sat, 8 May 2021 18:31:38 +0100 Subject: flake8 fixes --- git/util.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'git/util.py') 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") -- cgit v1.2.1