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 disallows passing http.cookiejar.CookieJar objects in this parameter, although that is supported by requests, as discussed at python/typeshed#12593.
Indeed, 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.
In version 4.3.0b2 of gql, the
RequestsHTTPTransportclass has the following type signature for thecookiesparameter of__init__:This seems incorrect, because it disallows passing
http.cookiejar.CookieJarobjects in this parameter, although that is supported by requests, as discussed at python/typeshed#12593.Indeed, 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.