summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-01-24 09:53:30 +0100
committerMartin Fischer <martin@push-f.com>2022-01-27 22:07:12 +0100
commit7f89adc5f39a9b3d2a03d32728010d0a770b89a3 (patch)
tree0de3a6965b4bd9b9b8ce3d449ef7e774f22b0857
parent1b03db4c737dbf0d6cf1ba4c5008c9a448f7a707 (diff)
downloadsearxng-7f89adc5f39a9b3d2a03d32728010d0a770b89a3.tar.gz
searxng-7f89adc5f39a9b3d2a03d32728010d0a770b89a3.zip
[pyright:strict] searx.shared.shared_abstract
-rw-r--r--searx/shared/shared_abstract.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/searx/shared/shared_abstract.py b/searx/shared/shared_abstract.py
index b4b15bea6..af4be30ae 100644
--- a/searx/shared/shared_abstract.py
+++ b/searx/shared/shared_abstract.py
@@ -1,20 +1,22 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
+# pyright: strict
from abc import ABC, abstractmethod
+from typing import Optional
class SharedDict(ABC):
@abstractmethod
- def get_int(self, key):
+ def get_int(self, key: str) -> Optional[int]:
pass
@abstractmethod
- def set_int(self, key, value):
+ def set_int(self, key: str, value: int):
pass
@abstractmethod
- def get_str(self, key):
+ def get_str(self, key: str) -> Optional[str]:
pass
@abstractmethod
- def set_str(self, key, value):
+ def set_str(self, key: str, value: str):
pass