From 6d43cf7952cb22dbf8c7d1851eeee1931f8604c3 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 17 Jan 2022 08:11:06 +0100 Subject: [PATCH] [typing] add optional attrs to Plugin --- searx/plugins/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index 6c1bea8d0..3d431f329 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -10,7 +10,7 @@ from os.path import abspath, basename, dirname, exists, join from shutil import copyfile from pkgutil import iter_modules from logging import getLogger -from typing import List +from typing import List, Tuple from searx import logger, settings @@ -22,6 +22,9 @@ class Plugin: # pylint: disable=too-few-public-methods name: str description: str default_on: bool + js_dependencies: Tuple[str] + css_dependencies: Tuple[str] + preference_section: str logger = logger.getChild("plugins")