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,19 +4,19 @@ from typing import Optional, Union, Any, Iterable, Mapping, Tuple
from .models import Response
ParamsMappingValueType = Union[str, bytes, int, float, Iterable[Union[str, bytes, int, float]]]
_ParamsMappingValueType = Union[str, bytes, int, float, Iterable[Union[str, bytes, int, float]]]
def request(method: str, url: str, **kwargs) -> Response: ...
def get(url: Union[str, bytes],
params: Optional[
Union[
Mapping[Union[str, bytes, int, float], ParamsMappingValueType],
Mapping[Union[str, bytes, int, float], _ParamsMappingValueType],
Union[str, bytes],
Tuple[Union[str, bytes, int, float], ParamsMappingValueType],
Mapping[str, ParamsMappingValueType],
Mapping[bytes, ParamsMappingValueType],
Mapping[int, ParamsMappingValueType],
Mapping[float, ParamsMappingValueType]]]=None,
Tuple[Union[str, bytes, int, float], _ParamsMappingValueType],
Mapping[str, _ParamsMappingValueType],
Mapping[bytes, _ParamsMappingValueType],
Mapping[int, _ParamsMappingValueType],
Mapping[float, _ParamsMappingValueType]]]=None,
**kwargs) -> Response: ...
def options(url: str, **kwargs) -> Response: ...
def head(url: str, **kwargs) -> Response: ...