mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Always return Iterator, not Iterable for __iter__ (#8361)
This commit is contained in:
1 parent
1a8a49e671
commit
fab1b59715
2 files changed
+3
-3
No files matched your search
@@ -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