diff options
| author | Martin Fischer <martin@push-f.com> | 2022-01-18 16:28:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 16:28:32 +0100 |
| commit | 96a1f79c6dcaa08a231ad3a28b8c17b677cddc9c (patch) | |
| tree | 3dbbf7b506b7e704a21b22344a01cb7c8244282d /searx/network/client.py | |
| parent | db6f617c0f05b5e29abf176012233025f824cf7d (diff) | |
| parent | 96655cbd4ecc061eaf592f948ae2cac4192850fc (diff) | |
Merge pull request #773 from not-my-profile/typing
More typing
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 6858ac05b..11086dd33 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, } |