aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-07-14 12:39:55 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit1b2f7742c9893a86bc150dcaec1b76b899f042be (patch)
treeba3db2bfff6970d429bd8b48d53c02b446532028 /slack
parent9457fb1de585458db6330e0b52805131300584c6 (diff)
downloadwee-slack-1b2f7742c9893a86bc150dcaec1b76b899f042be.tar.gz
Fix typings for create_connection
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_workspace.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index 51e4a89..d28083e 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -215,18 +215,15 @@ class SlackWorkspace:
async def _connect_ws(self, url: str):
proxy = Proxy()
- proxy_options = {
- "proxy_type": proxy.type,
- "http_proxy_host": proxy.address,
- "http_proxy_port": proxy.port,
- "http_proxy_auth": (proxy.username, proxy.password),
- "http_proxy_timeout": self.config.network_timeout.value,
- }
# TODO: Handle errors
self._ws = create_connection(
url,
self.config.network_timeout.value,
- **proxy_options,
+ proxy_type=proxy.type,
+ http_proxy_host=proxy.address,
+ http_proxy_port=proxy.port,
+ http_proxy_auth=(proxy.username, proxy.password),
+ http_proxy_timeout=self.config.network_timeout.value,
)
self._hook_ws_fd = weechat.hook_fd(