Improved pytz support for timezone function (#911)

This commit is contained in:
Adam Marszałek
2017-02-03 19:54:59 +01:00
committed by Guido van Rossum
parent c760a4e949
commit ca36070d51
3 changed files with 37 additions and 24 deletions

View File

@@ -4,18 +4,18 @@ from typing import Union, Optional, Iterable, Mapping, Tuple
from .models import Response
ParamsMappingValueType = Union[str, unicode, int, float, Iterable[Union[str, unicode, int, float]]]
_ParamsMappingValueType = Union[str, unicode, int, float, Iterable[Union[str, unicode, int, float]]]
def request(method: str, url: str, **kwargs) -> Response: ...
def get(url: Union[str, unicode],
params: Optional[
Union[Mapping[Union[str, unicode, int, float], ParamsMappingValueType],
Union[Mapping[Union[str, unicode, int, float], _ParamsMappingValueType],
Union[str, unicode],
Tuple[Union[str, unicode, int, float], ParamsMappingValueType],
Mapping[str, ParamsMappingValueType],
Mapping[unicode, ParamsMappingValueType],
Mapping[int, ParamsMappingValueType],
Mapping[float, ParamsMappingValueType]]] = None,
Tuple[Union[str, unicode, int, float], _ParamsMappingValueType],
Mapping[str, _ParamsMappingValueType],
Mapping[unicode, _ParamsMappingValueType],
Mapping[int, _ParamsMappingValueType],
Mapping[float, _ParamsMappingValueType]]] = None,
**kwargs) -> Response: ...
def options(url: Union[str, unicode], **kwargs) -> Response: ...
def head(url: Union[str, unicode], **kwargs) -> Response: ...