Change numerous default values to ... (#1722)

This is the convention, and some default values (e.g. strings) apparently
break pytype.
This commit is contained in:
Jelle Zijlstra
2017-11-09 06:28:41 -08:00
committed by Matthias Kramm
parent 66821993f6
commit 54dd6ba27c
53 changed files with 521 additions and 521 deletions

View File

@@ -102,8 +102,8 @@ class BytesIO(BinaryIO):
def __iter__(self) -> Iterator[bytes]: ...
def __next__(self) -> bytes: ...
def __enter__(self) -> 'BytesIO': ...
def __exit__(self, t: Optional[type] = None, value: Optional[BaseException] = None,
traceback: Optional[Any] = None) -> bool: ...
def __exit__(self, t: Optional[type] = ..., value: Optional[BaseException] = ...,
traceback: Optional[Any] = ...) -> bool: ...
def close(self) -> None: ...
def fileno(self) -> int: ...
def flush(self) -> None: ...
@@ -205,8 +205,8 @@ class TextIOWrapper(TextIO):
write_through: bool = ...
) -> None: ...
# copied from IOBase
def __exit__(self, t: Optional[type] = None, value: Optional[BaseException] = None,
traceback: Optional[Any] = None) -> bool: ...
def __exit__(self, t: Optional[type] = ..., value: Optional[BaseException] = ...,
traceback: Optional[Any] = ...) -> bool: ...
def close(self) -> None: ...
def fileno(self) -> int: ...
def flush(self) -> None: ...