a better definition for io.IOBase (#1160)

* a better definition for io.IOBase

* move BinaryIO superclass into _io._IOBase

* remove write() from _TextIOBase
This commit is contained in:
Matthias Kramm
2017-04-17 09:42:59 -07:00
committed by GitHub
parent 2c54640dce
commit 7e58389a27
2 changed files with 4 additions and 25 deletions

View File

@@ -5,6 +5,7 @@
# Only a subset of functionality is included.
from typing import List, BinaryIO, TextIO, IO, overload, Iterator, Iterable, Any, Union, Optional
import _io
DEFAULT_BUFFER_SIZE = 0
@@ -13,9 +14,7 @@ def open(file: Union[str, unicode, int],
errors: unicode = ..., newline: unicode = ...,
closefd: bool = ...) -> IO[Any]: ...
class IOBase:
# TODO
...
class IOBase(_io._IOBase): ...
class BytesIO(BinaryIO):
def __init__(self, initial_bytes: str = ...) -> None: ...