summaryrefslogtreecommitdiff
path: root/searx/shared/shared_abstract.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-27 23:18:41 +0100
committerGitHub <noreply@github.com>2022-01-27 23:18:41 +0100
commit4f82ab36a90db39d21201c11df3f4a437188e8d0 (patch)
tree3937ca19529bf38f4d5cd551de3ee81e042bd4b3 /searx/shared/shared_abstract.py
parent5fc53b41f8a0c6e1e1dea02f1427100c0a760beb (diff)
parent506169f312735301c1eb3ca8d10dd715298087b3 (diff)
Merge pull request #817 from not-my-profile/pyright-01
Pyright 01
Diffstat (limited to 'searx/shared/shared_abstract.py')
-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