diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-17 09:04:51 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-17 11:42:48 +0100 |
commit | def62c3a47384b6672cb584cd586ea104b86754f (patch) | |
tree | 3c250dbc0f50ddcd82ba336afd638c362bc9df21 /searx/network/client.py | |
parent | 6d43cf7952cb22dbf8c7d1851eeee1931f8604c3 (diff) |
[typing] add type hints for dictionaries
Diffstat (limited to 'searx/network/client.py')
-rw-r--r-- | searx/network/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/network/client.py b/searx/network/client.py index 6858ac05..11086dd3 100644 --- a/searx/network/client.py +++ b/searx/network/client.py @@ -4,7 +4,9 @@ import asyncio import logging +from ssl import SSLContext import threading +from typing import Any, Dict import httpx from httpx_socks import AsyncProxyTransport @@ -23,7 +25,7 @@ else: logger = logger.getChild('searx.network.client') LOOP = None -SSLCONTEXTS = {} +SSLCONTEXTS: Dict[Any, SSLContext] = {} TRANSPORT_KWARGS = { 'trust_env': False, } |