Sebastian Rittau
2679ed1c07
Add some kwonly arguments to Session.send() ( #6266 )
...
Bump version to 2.26
2021-11-09 17:23:48 -08:00
KotlinIsland
6e646f43dd
Remove BaseAdapter from requests.sessions ( #6264 )
2021-11-08 17:33:16 -08:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Sebastian Rittau
9f86972350
Add star to all non-0.1 versions ( #6146 )
2021-10-11 13:41:19 -07:00
Sebastian Rittau
3128c6afbf
requests: Response.encoding can be None ( #6067 )
...
The type of the `encoding` attribute was previously typed as `str`, even though it can be `None` at runtime.
2021-09-25 11:50:36 +03:00
Matthew Hughes
d1a556cec9
Update Session.prepare_request, .get_adapter ( #6058 )
2021-09-21 19:15:45 +02:00
Edgar Ramírez
8ea6d6f331
Support name, content-type and headers in file upload ( #6052 )
...
`requests` supports not only passing binary file-like objects for multi-part file uploads but also additionally passing a name, content-type and headers. This adds type hints for those options.
See https://docs.python-requests.org/en/master/user/quickstart/#post-a-multipart-encoded-file .
2021-09-20 06:46:22 -07:00
Akuli
191aac3b0e
lowercase list and dict for 3rd party stubs ( #5893 )
...
* stubs/decorator/decorator.pyi
* stubs/frozendict/frozendict.pyi
* stubs/Jinja2/jinja2/nodes.pyi
* stubs/Pygments/pygments/token.pyi
* stubs/requests/requests/models.pyi
* stubs/Werkzeug/werkzeug/http.pyi
2021-08-08 13:25:18 -07:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
1154218a0e
switch to new union syntax in third-party stubs ( #5881 )
2021-08-08 15:46:55 +02:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Stephen Rosen
6a9c7aff99
Add missing exceptions to requests __init__.pyi ( #5840 )
2021-08-02 07:29:28 -07:00
MapleCCC
7ce0b9d670
Update urllib3.util.retry.Retry.__init__() to match the latest version released on PyPI ( #5817 )
2021-07-29 20:35:24 -07:00
Sebastian Rittau
b1ef60c9d5
Update a few stub versions ( #5670 )
2021-06-21 07:15:00 -07:00
Sebastian Rittau
9ec2f87124
Copy args from json.loads() to requests.Response.json() ( #5664 )
2021-06-20 07:21:20 -07:00
Shantanu
7244ea1f71
Test third party stubs with stubtest ( #5615 )
2021-06-13 00:17:40 +02:00
Jelle Zijlstra
967d0b2167
Add self type to requests.Session.__enter__ ( #5620 )
...
Fixes microsoft/pyright#1976
2021-06-11 16:48:48 +02:00
Sebastian Rittau
711580722b
Enable pyright for all Python 3 stubs ( #5597 )
...
* pyright: disable reportUnknownParameterType
Unknown parameter types are preferred over Any annotations for
incomplete stubs. Especially larger stubs are expected to be
incomplete for some time and it would be a shame to lose the
other pyright warnings for those stubs.
* Also disable reportUnknownVariableType
Fix problems with tkinter
* Disable reportUnknownMemberType
Fix pyright problems
2021-06-09 07:14:22 -07:00
Viktor Roytman
bbe7e5ef11
Add should_strip_auth to requests SessionRedirectMixin ( #5439 )
2021-05-13 20:58:43 +02:00
Akuli
9f732a128a
enable mypy_test for python 3.10 ( #5341 )
...
* enable mypy_test for python 3.10
* avoid collections.Mapping and collections.MutableMapping, import from typing
2021-05-05 00:09:33 +03:00
Akuli
8b23590952
fix requests.adapters.HttpAdapter.max_retries ( #5268 )
2021-04-30 15:46:02 +02:00
Jukka Lehtosalo
aff821c538
Improve requests.adapters.HttpAdapter.__init__ ( #5266 )
...
The `max_retries` argument can be `None`. It's handled here as `retries`:
https://github.com/urllib3/urllib3/blob/main/src/urllib3/util/retry.py#L235
2021-04-30 14:15:13 +01:00
Shantanu
fa9d5a5e9f
future first: switch the order of some if statements ( #5206 )
...
Since we're adding this to our contribution guidelines in
https://github.com/python/typeshed/pull/5205
2021-04-11 06:44:18 -07:00
Christopher Dignam
f4625cb511
[requests] add argument names for api and session methods ( #5149 )
...
Most of these types are Any, but we should now have slightly better auto complete for the argument names
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
2021-04-08 12:24:54 +02:00
Mathieu Parent
cb03e90323
Allow List[str] for requests.Session.request(params=) ( #5187 )
2021-04-06 23:42:53 -07:00
Christopher Dignam
32f56444c0
[requests] add types for HTTPAdapter init ( #5164 )
...
* [requests] add types for HTTPAdapter init
2021-03-31 19:38:50 +03:00
Dean Way
a3f5541830
auth uses PreparedRequest not Request ( #5006 )
2021-02-05 13:30:14 +01:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00