mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Allow requests.post to accept str for data. (#1922)
```python import json url = 'https://api.github.com/some/endpoint' payload = {'some': 'data'} r = requests.post(url, data=json.dumps(payload)) ```
This commit is contained in:
1
third_party/2and3/requests/api.pyi
vendored
1
third_party/2and3/requests/api.pyi
vendored
@@ -13,6 +13,7 @@ else:
|
||||
_ParamsMappingValueType = Union[_Text, bytes, int, float, Iterable[Union[_Text, bytes, int, float]]]
|
||||
_Data = Union[
|
||||
None,
|
||||
_Text,
|
||||
bytes,
|
||||
MutableMapping[str, str],
|
||||
MutableMapping[str, Text],
|
||||
|
||||
Reference in New Issue
Block a user