diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-01-13 15:46:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-13 15:46:48 +0100 |
| commit | 484dc99580a4cfdbba022209cbe896cd69b3e8b2 (patch) | |
| tree | 0dc84bbe549fac71ead7ee4e4fafeb0d3f3021c2 /searx/shared/shared_abstract.py | |
| parent | f7e11fd7222363a72a8fa33cf69190f64a3880bd (diff) | |
| parent | 912c7e975c3943db798d748fa48d460467b66d30 (diff) | |
Merge pull request #2419 from dalf/checker
[enh] add checker
Diffstat (limited to 'searx/shared/shared_abstract.py')
| -rw-r--r-- | searx/shared/shared_abstract.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/searx/shared/shared_abstract.py b/searx/shared/shared_abstract.py new file mode 100644 index 000000000..b1c72aabe --- /dev/null +++ b/searx/shared/shared_abstract.py @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later +from abc import ABC, abstractmethod + + +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 |