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

@@ -84,16 +84,16 @@ def byte2int(bs: binary_type) -> int: ...
def indexbytes(buf: binary_type, i: int) -> int: ...
def iterbytes(buf: binary_type) -> typing.Iterator[int]: ...
def assertCountEqual(self: unittest.TestCase, first: Iterable[_T], second: Iterable[_T], msg: Optional[str] = None) -> None: ...
def assertCountEqual(self: unittest.TestCase, first: Iterable[_T], second: Iterable[_T], msg: Optional[str] = ...) -> None: ...
@overload
def assertRaisesRegex(self: unittest.TestCase, msg: Optional[str] = None) -> Any: ...
def assertRaisesRegex(self: unittest.TestCase, msg: Optional[str] = ...) -> Any: ...
@overload
def assertRaisesRegex(self: unittest.TestCase, callable_obj: Callable[..., Any], *args: Any, **kwargs: Any) -> Any: ...
def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[AnyStr, Pattern[AnyStr]], msg: Optional[str] = None) -> None: ...
def assertRegex(self: unittest.TestCase, text: AnyStr, expected_regex: Union[AnyStr, Pattern[AnyStr]], msg: Optional[str] = ...) -> None: ...
exec_ = exec
def reraise(tp: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[types.TracebackType] = None) -> NoReturn: ...
def reraise(tp: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[types.TracebackType] = ...) -> NoReturn: ...
def raise_from(value: BaseException, from_value: Optional[BaseException]) -> NoReturn: ...
print_ = print

View File

@@ -81,8 +81,8 @@ class BaseResponse:
headers: Optional[Union[Headers,
Mapping[str, str],
Sequence[Tuple[str, str]]]]=None,
mimetype: Optional[str] = None,
content_type: Optional[str] = None,
mimetype: Optional[str] = ...,
content_type: Optional[str] = ...,
direct_passthrough: bool=False) -> None: ...
def call_on_close(self, func): ...
@classmethod