fix some abstract classes in Python 2 (#2240)

Part of #1476.
This commit is contained in:
Jelle Zijlstra
2018-06-16 16:56:00 -07:00
committed by Ivan Levkivskyi
parent 7c3edba6ce
commit 0393de4bd7
5 changed files with 10 additions and 3 deletions

View File

@@ -1060,6 +1060,7 @@ class file(BinaryIO):
@overload
def __init__(self, file: int, mode: str = ..., buffering: int = ...) -> None: ...
def __iter__(self) -> Iterator[str]: ...
def next(self) -> str: ...
def read(self, n: int = ...) -> str: ...
def __enter__(self) -> BinaryIO: ...
def __exit__(self, t: Optional[type] = ..., exc: Optional[BaseException] = ..., tb: Optional[Any] = ...) -> bool: ...