mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 06:25:12 +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"
|
||||
|
||||
self._client_kwargs = {
|
||||
"timeout": timeout,
|
||||
"proxies": proxy_url,
|
||||
"limits": limits,
|
||||
"http1": http1,
|
||||
"http2": not http1,
|
||||
}
|
||||
# See https://github.com/python-telegram-bot/python-telegram-bot/pull/3542
|
||||
# for why we need to use `dict()` here.
|
||||
self._client_kwargs = dict( # pylint: disable=use-dict-literal
|
||||
timeout=timeout,
|
||||
proxies=proxy_url,
|
||||
limits=limits,
|
||||
http1=http1,
|
||||
http2=not http1,
|
||||
)
|
||||
|
||||
try:
|
||||
self._client = self._build_client()
|
||||
|
|
Loading…
Reference in a new issue