Change more defaults to ... (#1727)

This commit is contained in:
Jelle Zijlstra
2017-11-09 10:32:17 -08:00
committed by Matthias Kramm
parent fd25e534ad
commit 324f1761f4
20 changed files with 99 additions and 99 deletions

View File

@@ -30,7 +30,7 @@ class parser(object):
def __init__(self, info: Optional[parserinfo] = ...) -> None: ...
def parse(self, timestr: Union[str, unicode, IO[unicode]],
default: Optional[datetime] = ...,
ignoretz: bool = ..., tzinfos: Optional[Dict[Union[str, unicode], tzinfo]] = None,
ignoretz: bool = ..., tzinfos: Optional[Dict[Union[str, unicode], tzinfo]] = ...,
**kwargs: Any) -> datetime: ...
DEFAULTPARSER = ... # type: parser

View File

@@ -77,14 +77,14 @@ class BaseResponse:
direct_passthrough = ... # type: bool
response = ... # type: Iterable[str]
def __init__(self,
response: Optional[Union[Iterable[str], str]] = None,
status: Optional[Union[basestring, int]] = None,
response: Optional[Union[Iterable[str], str]] = ...,
status: Optional[Union[basestring, int]] = ...,
headers: Optional[Union[Headers,
Mapping[basestring, basestring],
Sequence[Tuple[basestring, basestring]]]] = None,
mimetype: Optional[basestring] = ...,
content_type: Optional[basestring] = ...,
direct_passthrough: Optional[bool] = False) -> None: ...
direct_passthrough: Optional[bool] = ...) -> None: ...
def call_on_close(self, func): ...
@classmethod
def force_type(cls, response, environ=None): ...