add more typing

This commit is contained in:
Jonathan Wren 2022-10-01 18:45:43 -07:00
parent e695e7a30c
commit 0466cda64f

View file

@ -83,13 +83,13 @@ class Journal:
encryption_method = determine_encryption_method(self.config["encrypt"])
self.encryption_method = encryption_method(self.name, self.config)
def _decrypt(self, text):
def _decrypt(self, text: bytes) -> str:
if self.encryption_method is None:
self._get_encryption_method()
return self.encryption_method.decrypt(text)
def _encrypt(self, text):
def _encrypt(self, text: str) -> bytes:
if self.encryption_method is None:
self._get_encryption_method()