Title: `requests` methods should accept `http.cookiejar.CookieJar` instead of `RequestsCookieJar` · Issue #12593 · python/typeshed · GitHub
Open Graph Title: `requests` methods should accept `http.cookiejar.CookieJar` instead of `RequestsCookieJar` · Issue #12593 · python/typeshed
X Title: `requests` methods should accept `http.cookiejar.CookieJar` instead of `RequestsCookieJar` · Issue #12593 · python/typeshed
Description: 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 h...
Open Graph Description: 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. reques...
X Description: 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. reques...
Opengraph URL: https://github.com/python/typeshed/issues/12593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`requests` methods should accept `http.cookiejar.CookieJar` instead of `RequestsCookieJar`","articleBody":"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](https://requests.readthedocs.io/en/latest/api/#requests.cookies.RequestsCookieJar), 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`.","author":{"url":"https://github.com/FeldrinH","@type":"Person","name":"FeldrinH"},"datePublished":"2024-08-25T16:30:33Z","url":"https://github.com/python/typeshed/issues/12593"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ee52817b-75e8-607b-bdc2-d6a3caf8fb35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9E4:2C0A92:1C74A82:249C437:6AFFC6AB |
| html-safe-nonce | dddefa240ceed03c31425de0202442dd27c3a481cd568950150b98737c9110d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUU0OjJDMEE5MjoxQzc0QTgyOjI0OUM0Mzc6NkFGRkM2QUIiLCJ2aXNpdG9yX2lkIjoiODYyNTgwMjgyNzc1NjcxNzczOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 495e7059a59272f8303534bf249d17a54a6004a3ab136a600b43e26ed1d36430 |
| hovercard-subject-tag | issue:2485363614 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/12593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ead5047288b13fe04d7620dda201dc3a7fe5b11f1d75bca2986638ca8c253b2/python/typeshed/issues/12593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ead5047288b13fe04d7620dda201dc3a7fe5b11f1d75bca2986638ca8c253b2/python/typeshed/issues/12593 |
| og:image:alt | 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. reques... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FeldrinH |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8fa4a54e6871c7908eda1c246ad5972982c0b59d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width