shared_abstract.py 368 B

12345678910111213141516171819202122
  1. # SPDX-License-Identifier: AGPL-3.0-or-later
  2. from abc import ABC, abstractmethod
  3. class SharedDict(ABC):
  4. @abstractmethod
  5. def get_int(self, key):
  6. pass
  7. @abstractmethod
  8. def set_int(self, key, value):
  9. pass
  10. @abstractmethod
  11. def get_str(self, key):
  12. pass
  13. @abstractmethod
  14. def set_str(self, key, value):
  15. pass