[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

@ -15,6 +15,7 @@ __all__ = [
]
import threading
from typing import Dict
from searx import logger
from searx import engines
@ -26,7 +27,7 @@ from .online_currency import OnlineCurrencyProcessor
from .abstract import EngineProcessor
logger = logger.getChild('search.processors')
PROCESSORS = {}
PROCESSORS: Dict[str, EngineProcessor] = {}
"""Cache request processores, stored by *engine-name* (:py:func:`initialize`)"""