Skip to content

Commit

Permalink
fix iter typing
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault-crim committed May 10, 2022
1 parent f66512d commit 7cfe3a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitcher/owsproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 7cfe3a1

Please sign in to comment.