From def62c3a47384b6672cb584cd586ea104b86754f Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 17 Jan 2022 09:04:51 +0100 Subject: [typing] add type hints for dictionaries --- searx/network/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'searx/network/network.py') 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://', -- cgit v1.2.3