fix return types in _io.pyi

This commit is contained in:
Matthias Kramm
2015-11-09 14:06:49 -08:00
parent 3b47859261
commit 2601a12c88

View File

@@ -87,13 +87,15 @@ class _TextIOBase(_IOBase):
newlines = ... # type: Union[str, unicode]
encoding = ... # type: Optional[str]
def read(self, n: int = ...) -> str: ...
def write(self): ...
def detach(self): ...
def write(self) -> None:
raise UnsupportedOperation
def detach(self) -> None:
raise UnsupportedOperation
class StringIO(_TextIOBase):
line_buffering = ... # type: bool
def getvalue(self) -> str: ...
def __setstate__(self, state: tuple): ...
def __setstate__(self, state: tuple) -> None: ...
def __getstate__(self) -> tuple: ...
class TextIOWrapper(_TextIOBase):