mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-17 15:24:14 +08:00
fix return types in _io.pyi
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user