summaryrefslogtreecommitdiff
path: root/searx/network/network.py
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-18 16:28:32 +0100
committerGitHub <noreply@github.com>2022-01-18 16:28:32 +0100
commit96a1f79c6dcaa08a231ad3a28b8c17b677cddc9c (patch)
tree3dbbf7b506b7e704a21b22344a01cb7c8244282d /searx/network/network.py
parentdb6f617c0f05b5e29abf176012233025f824cf7d (diff)
parent96655cbd4ecc061eaf592f948ae2cac4192850fc (diff)
Merge pull request #773 from not-my-profile/typing
More typing
Diffstat (limited to 'searx/network/network.py')
-rw-r--r--searx/network/network.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/network/network.py b/searx/network/network.py
index 43140b44d..c9af97649 100644
--- a/searx/network/network.py
+++ b/searx/network/network.py
@@ -7,6 +7,7 @@ import atexit
import asyncio
import ipaddress
from itertools import cycle
+from typing import Dict
import httpx
@@ -16,7 +17,7 @@ from .client import new_client, get_loop, AsyncHTTPTransportNoHttp
logger = logger.getChild('network')
DEFAULT_NAME = '__DEFAULT__'
-NETWORKS = {}
+NETWORKS: Dict[str, 'Network'] = {}
# requests compatibility when reading proxy settings from settings.yml
PROXY_PATTERN_MAPPING = {
'http': 'http://',