Commit Graph

15 Commits

Author SHA1 Message Date
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