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

@@ -180,7 +180,7 @@ if sys.version_info >= (3, 6):
def asend(self, value: _T_contra) -> Awaitable[_T_co]: ...
@abstractmethod
def athrow(self, typ: Type[BaseException], val: Optional[BaseException] = None,
def athrow(self, typ: Type[BaseException], val: Optional[BaseException] = ...,
tb: Any = None) -> Awaitable[_T_co]: ...
@abstractmethod
@@ -214,7 +214,7 @@ class Sequence(_Collection[_T_co], Reversible[_T_co], Generic[_T_co]):
def __getitem__(self, s: slice) -> Sequence[_T_co]: ...
# Mixin methods
if sys.version_info >= (3, 5):
def index(self, x: Any, start: int = 0, end: int = 0) -> int: ...
def index(self, x: Any, start: int = ..., end: int = ...) -> int: ...
else:
def index(self, x: Any) -> int: ...
def count(self, x: Any) -> int: ...