mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-18 15:20:42 +01:00
Fix CI on Python 3.11 + Windows (#3547)
This commit is contained in:
parent
217a5f929e
commit
5cff9adb55
1 changed files with 9 additions and 7 deletions
|
@ -117,13 +117,15 @@ class HTTPXRequest(BaseRequest):
|
||||||
|
|
||||||
http1 = http_version == "1.1"
|
http1 = http_version == "1.1"
|
||||||
|
|
||||||
self._client_kwargs = {
|
# See https://github.com/python-telegram-bot/python-telegram-bot/pull/3542
|
||||||
"timeout": timeout,
|
# for why we need to use `dict()` here.
|
||||||
"proxies": proxy_url,
|
self._client_kwargs = dict( # pylint: disable=use-dict-literal
|
||||||
"limits": limits,
|
timeout=timeout,
|
||||||
"http1": http1,
|
proxies=proxy_url,
|
||||||
"http2": not http1,
|
limits=limits,
|
||||||
}
|
http1=http1,
|
||||||
|
http2=not http1,
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._client = self._build_client()
|
self._client = self._build_client()
|
||||||
|
|
Loading…
Reference in a new issue