mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Always return Iterator, not Iterable for __iter__ (#8361)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user