requests.post data arg accepts an iterable of tuples (#1660)

This commit is contained in:
rymdhund
2017-10-10 17:16:38 +02:00
committed by Jelle Zijlstra
parent d333474ed9
commit feac49ac7f

View File

@@ -5,7 +5,7 @@ from typing import Optional, Union, Any, Iterable, Mapping, MutableMapping, Tupl
from .models import Response
_ParamsMappingValueType = Union[Text, bytes, int, float, Iterable[Union[Text, bytes, int, float]]]
_Data = Union[None, bytes, MutableMapping[Text, Text], IO]
_Data = Union[None, bytes, MutableMapping[Text, Text], Iterable[Tuple[Text, Text]], IO]
def request(method: str, url: str, **kwargs) -> Response: ...
def get(url: Union[Text, bytes],