fix bugs in builtins/2.7/*.pyi

This commit is contained in:
Matthias Kramm
2015-10-01 08:02:44 -07:00
parent 3f713101a5
commit a2f5703041
22 changed files with 77 additions and 58 deletions

View File

@@ -24,10 +24,11 @@ class StringIO(IO[str]):
def truncate(self, size: int = None) -> int:
raise IOError()
def writable(self) -> bool: ...
def next(self) -> str: ...
def __iter__(self) -> "InputType": ...
def __next__(self) -> str: ...
def __enter__(self) -> Any: ...
def __exit__(self, exc_type: type, exc_val: Any, exc_tb: Any) -> Any: ...
# The C extension actually returns an "InputType".
def __iter__(self) -> Iterator[str]: ...
# only StringO:
def reset(self) -> None: ...
def write(self, b: Union[str, unicode]) -> None: ...