Always return Iterator, not Iterable for __iter__ (#8361)

This commit is contained in:
Nikita Sobolev
2022-07-22 10:10:58 +03:00
committed by GitHub
parent 1a8a49e671
commit fab1b59715
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ class InputWrapper:
def read(self, size: int) -> bytes: ...
def readline(self, size: int = ...) -> bytes: ...
def readlines(self, hint: int = ...) -> bytes: ...
def __iter__(self) -> Iterable[bytes]: ...
def __iter__(self) -> Iterator[bytes]: ...
def close(self) -> NoReturn: ...
class ErrorWrapper: