[typing] add type hints for dictionaries

This commit is contained in:
Martin Fischer 2022-01-17 09:04:51 +01:00
parent 6d43cf7952
commit def62c3a47
4 changed files with 10 additions and 5 deletions

View file

@ -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,
}