Skip to content

Commit

Permalink
Fix CI on Python 3.11 + Windows (#3547)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed Feb 9, 2023
1 parent 217a5f9 commit 5cff9ad
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions telegram/request/_httpxrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ def __init__(

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()
Expand Down

0 comments on commit 5cff9ad

Please sign in to comment.