mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-13 09:58:31 +02:00
fix more type hints
This commit is contained in:
parent
15da50a9cf
commit
120ad59b8d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue