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

@@ -6,7 +6,7 @@
import sys
from _typeshed import OptExcInfo
from collections.abc import Callable, Iterable
from collections.abc import Callable, Iterable, Iterator
from typing import Any, Protocol
from typing_extensions import TypeAlias
@@ -31,7 +31,7 @@ else:
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]: ...
# WSGI error streams per PEP 3333, stable
class ErrorStream(Protocol):