fix more type hints

This commit is contained in:
Jonathan Wren 2022-10-08 15:30:14 -07:00
parent 15da50a9cf
commit 120ad59b8d

View file

@ -15,7 +15,7 @@ class BaseEncryption(ABC):
self._journal_name: str = journal_name self._journal_name: str = journal_name
self._config: dict = config self._config: dict = config
def encrypt(self, text: str) -> str: def encrypt(self, text: str) -> bytes:
return self._encrypt(text) return self._encrypt(text)
def decrypt(self, text: bytes) -> str: def decrypt(self, text: bytes) -> str:
@ -27,7 +27,7 @@ class BaseEncryption(ABC):
return result return result
@abstractmethod @abstractmethod
def _encrypt(self, text: str) -> str: def _encrypt(self, text: str) -> bytes:
""" """
This is needed because self.decrypt might need This is needed because self.decrypt might need
to perform actions (e.g. prompt for password) to perform actions (e.g. prompt for password)