Title: RequestsHTTPTransport cookies arg seems to have wrong type signature · Issue #593 · graphql-python/gql · GitHub
Open Graph Title: RequestsHTTPTransport cookies arg seems to have wrong type signature · Issue #593 · graphql-python/gql
X Title: RequestsHTTPTransport cookies arg seems to have wrong type signature · Issue #593 · graphql-python/gql
Description: In version 4.3.0b2 of gql, the RequestsHTTPTransport class has the following type signature for the cookies parameter of __init__: cookies: Optional[Union[Dict[str, Any], RequestsCookieJar]] = None, This seems incorrect, because it disal...
Open Graph Description: In version 4.3.0b2 of gql, the RequestsHTTPTransport class has the following type signature for the cookies parameter of __init__: cookies: Optional[Union[Dict[str, Any], RequestsCookieJar]] = None...
X Description: In version 4.3.0b2 of gql, the RequestsHTTPTransport class has the following type signature for the cookies parameter of __init__: cookies: Optional[Union[Dict[str, Any], RequestsCookieJar]] = None...
Opengraph URL: https://github.com/graphql-python/gql/issues/593
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RequestsHTTPTransport cookies arg seems to have wrong type signature","articleBody":"In version 4.3.0b2 of gql, the `RequestsHTTPTransport` class has the following type signature for the `cookies` parameter of `__init__`:\n\n```python\n cookies: Optional[Union[Dict[str, Any], RequestsCookieJar]] = None,\n```\n\nThis seems incorrect, because it disallows passing `http.cookiejar.CookieJar` objects in this parameter, although that is supported by requests, as discussed at https://github.com/python/typeshed/issues/12593.\n\nIndeed, I see an error flagged by the Pyright language server when I do this. Happy to provide more diagnostic information if it would be helpful, however the root cause seemed clear to me when I looked at the code above.\n","author":{"url":"https://github.com/raxod502","@type":"Person","name":"raxod502"},"datePublished":"2026-05-30T20:25:13Z","url":"https://github.com/graphql-python/gql/issues/593"}
| 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:2e89e09f-c2e5-7097-d22e-01187574964f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA52:2714DE:114EB10:171D9BF:6AFFC3F3 |
| html-safe-nonce | 008dff5208f9a84a706d5c905a4075a97fc9706e063ff749ea26b3323fc99ab3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTUyOjI3MTRERToxMTRFQjEwOjE3MUQ5QkY6NkFGRkMzRjMiLCJ2aXNpdG9yX2lkIjoiMzY0MzM5Nzc0MjI2MjIwNzQ3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7df0ede08af12c118a5b7363a382410b420b094203793bb793365e3b925784b1 |
| hovercard-subject-tag | issue:4555597251 |
| 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/graphql-python/gql/593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c090695af912d5bb7de36bb28b83d7075f65bf6292d9413445e5ce0b802e1d9/graphql-python/gql/issues/593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c090695af912d5bb7de36bb28b83d7075f65bf6292d9413445e5ce0b802e1d9/graphql-python/gql/issues/593 |
| og:image:alt | In version 4.3.0b2 of gql, the RequestsHTTPTransport class has the following type signature for the cookies parameter of __init__: cookies: Optional[Union[Dict[str, Any], RequestsCookieJar]] = None... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | raxod502 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1e805b832df235bb21305db712c3b6432920019dfc12cb25b9cb8d3b0c9403cf |
| turbo-cache-control | no-preview |
| go-import | github.com/graphql-python/gql git https://github.com/graphql-python/gql.git |
| octolytics-dimension-user_id | 15002022 |
| octolytics-dimension-user_login | graphql-python |
| octolytics-dimension-repository_id | 62077169 |
| octolytics-dimension-repository_nwo | graphql-python/gql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 62077169 |
| octolytics-dimension-repository_network_root_nwo | graphql-python/gql |
| 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