Commit Graph

8 Commits

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