From 120ad59b8d86ee79ef5a42e4a42d3e16bfe549e7 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 8 Oct 2022 15:30:14 -0700 Subject: [PATCH] fix more type hints --- jrnl/encryption/BaseEncryption.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jrnl/encryption/BaseEncryption.py b/jrnl/encryption/BaseEncryption.py index 8e7ed466..78dd5cf0 100644 --- a/jrnl/encryption/BaseEncryption.py +++ b/jrnl/encryption/BaseEncryption.py @@ -15,7 +15,7 @@ class BaseEncryption(ABC): self._journal_name: str = journal_name self._config: dict = config - def encrypt(self, text: str) -> str: + def encrypt(self, text: str) -> bytes: return self._encrypt(text) def decrypt(self, text: bytes) -> str: @@ -27,7 +27,7 @@ class BaseEncryption(ABC): return result @abstractmethod - def _encrypt(self, text: str) -> str: + def _encrypt(self, text: str) -> bytes: """ This is needed because self.decrypt might need to perform actions (e.g. prompt for password)