From a0c8b413a610e8cde49dbb321ba17b16200eb92f Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Mon, 11 Jan 2021 18:44:39 +0100 Subject: [mod] searx.shared: minor tweaks searx.shared.shared_abstract.SharedDict inherit from abc.ABC searx.shared.shared_uwsgi.schedule can schedule multiple functions without issue --- searx/shared/shared_abstract.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'searx/shared/shared_abstract.py') diff --git a/searx/shared/shared_abstract.py b/searx/shared/shared_abstract.py index 3fede417e..b1c72aabe 100644 --- a/searx/shared/shared_abstract.py +++ b/searx/shared/shared_abstract.py @@ -1,15 +1,21 @@ # SPDX-License-Identifier: AGPL-3.0-or-later +from abc import ABC, abstractmethod -class SharedDict: +class SharedDict(ABC): + + @abstractmethod def get_int(self, key): pass + @abstractmethod def set_int(self, key, value): pass + @abstractmethod def get_str(self, key): pass + @abstractmethod def set_str(self, key, value): pass -- cgit v1.2.3