wsgiref.types: use Iterator, not Iterable (#8358)

https://github.com/python/typeshed/issues/8356
This commit is contained in:
Shantanu
2022-07-21 13:26:44 -07:00
committed by GitHub
parent b418c1c3ba
commit 1a8a49e671
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
from collections.abc import Callable, Iterable
from collections.abc import Callable, Iterable, Iterator
from sys import _OptExcInfo
from typing import Any, Protocol
from typing_extensions import TypeAlias
@@ -17,7 +17,7 @@ class InputStream(Protocol):
def read(self, __size: int = ...) -> bytes: ...
def readline(self, __size: int = ...) -> bytes: ...
def readlines(self, __hint: int = ...) -> list[bytes]: ...
def __iter__(self) -> Iterable[bytes]: ...
def __iter__(self) -> Iterator[bytes]: ...
class ErrorStream(Protocol):
def flush(self) -> object: ...