Add next() to more IO classes

This commit is contained in:
Guido van Rossum
2016-09-13 11:48:50 -07:00
parent 8b0e6b886d
commit 312725ed5d

View File

@@ -68,6 +68,7 @@ class StringIO(TextIO):
def getvalue(self) -> unicode: ...
def __iter__(self) -> Iterator[unicode]: ...
def next(self) -> unicode: ...
def __enter__(self) -> 'StringIO': ...
def __exit__(self, type, value, traceback) -> bool: ...
@@ -96,6 +97,7 @@ class TextIOWrapper(TextIO):
def writelines(self, lines: Iterable[unicode]) -> None: ...
def __iter__(self) -> Iterator[unicode]: ...
def next(self) -> unicode: ...
def __enter__(self) -> StringIO: ...
def __exit__(self, type, value, traceback) -> bool: ...