mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Added Iterable of tuples support (#4636)
This commit is contained in:
13
third_party/2and3/requests/api.pyi
vendored
13
third_party/2and3/requests/api.pyi
vendored
@@ -1,10 +1,12 @@
|
||||
# Stubs for requests.api (Python 3)
|
||||
|
||||
from typing import Iterable, Mapping, Optional, Text, Tuple, Union
|
||||
from _typeshed import SupportsItems
|
||||
from typing import Iterable, Optional, Text, Tuple, Union
|
||||
|
||||
from .models import Response
|
||||
from .sessions import _Data
|
||||
|
||||
_ParamsMappingKeyType = Union[Text, bytes, int, float]
|
||||
_ParamsMappingValueType = Union[Text, bytes, int, float, Iterable[Union[Text, bytes, int, float]], None]
|
||||
|
||||
def request(method: str, url: str, **kwargs) -> Response: ...
|
||||
@@ -12,13 +14,10 @@ def get(
|
||||
url: Union[Text, bytes],
|
||||
params: Optional[
|
||||
Union[
|
||||
Mapping[Union[Text, bytes, int, float], _ParamsMappingValueType],
|
||||
SupportsItems[_ParamsMappingKeyType, _ParamsMappingValueType],
|
||||
Tuple[_ParamsMappingKeyType, _ParamsMappingValueType],
|
||||
Iterable[Tuple[_ParamsMappingKeyType, _ParamsMappingValueType]],
|
||||
Union[Text, bytes],
|
||||
Tuple[Union[Text, bytes, int, float], _ParamsMappingValueType],
|
||||
Mapping[Text, _ParamsMappingValueType],
|
||||
Mapping[bytes, _ParamsMappingValueType],
|
||||
Mapping[int, _ParamsMappingValueType],
|
||||
Mapping[float, _ParamsMappingValueType],
|
||||
]
|
||||
] = ...,
|
||||
**kwargs,
|
||||
|
||||
Reference in New Issue
Block a user