diff --git a/twitcher/owsproxy.py b/twitcher/owsproxy.py index bf16b15..811caf8 100644 --- a/twitcher/owsproxy.py +++ b/twitcher/owsproxy.py @@ -18,7 +18,7 @@ LOGGER = logging.getLogger('TWITCHER') if TYPE_CHECKING: - from typing import Iterable, Optional + from typing import Iterator, Optional from pyramid.config import Configurator from pyramid.request import Request @@ -63,7 +63,7 @@ def __init__(self, resp): self.resp = resp def __iter__(self): - # type: () -> Iterable[bytes] + # type: () -> Iterator[bytes] return self.resp.iter_content(64 * 1024)