mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
wsgiref.types: use Iterator, not Iterable (#8358)
https://github.com/python/typeshed/issues/8356
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user