requests.Session.request data arg accepts an iterable of tuples (#3237)

This commit is contained in:
Alex Garbutt
2019-09-16 13:16:52 -07:00
committed by Sebastian Rittau
parent d0f3eb2d6b
commit 895ae0fd9b
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -54,7 +54,7 @@ class SessionRedirectMixin:
def rebuild_auth(self, prepared_request, response): ...
def rebuild_proxies(self, prepared_request, proxies): ...
_Data = Union[None, bytes, MutableMapping[Text, Text], IO]
_Data = Union[None, Text, bytes, MutableMapping[str, Any], MutableMapping[Text, Any], Iterable[Tuple[Text, Optional[Text]]], IO]
_Hook = Callable[[Response], Any]
_Hooks = MutableMapping[Text, List[_Hook]]