From 7cfe3a1c386d83cb7809c54cf974e7ff3d533708 Mon Sep 17 00:00:00 2001 From: Francis Charette-Migneault Date: Mon, 9 May 2022 20:55:09 -0400 Subject: [PATCH] fix iter typing --- twitcher/owsproxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)