You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
requests methods should accept http.cookiejar.CookieJar instead of RequestsCookieJar #12593
Currently requests.get and other similar methods produce a type error if you try to pass them a http.cookiejar.CookieJar as cookies. As far as I can tell this is a mistake in the type hints. requests fully supports providing cookies as http.cookiejar.CookieJar. According to requests documentation, the RequestsCookieJar class is intended as a compatibility wrapper for "external client code" and every method in requests that accepts a cookie jar should work just fine with a standard CookieJar.
Activity
srittau commentedon Aug 29, 2024
Sounds reasonable, PR welcome!