mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Add next() to more IO classes
This commit is contained in:
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user