mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
requests.post data arg accepts an iterable of tuples (#1660)
This commit is contained in:
2
third_party/2and3/requests/api.pyi
vendored
2
third_party/2and3/requests/api.pyi
vendored
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user