From e695e7a30c42c49d7e241fc3aa8286b92bc4d466 Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 1 Oct 2022 16:26:10 -0700 Subject: [PATCH] fix for python 3.11 --- jrnl/encryption/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jrnl/encryption/__init__.py b/jrnl/encryption/__init__.py index 286c8081..2e8ce2c8 100644 --- a/jrnl/encryption/__init__.py +++ b/jrnl/encryption/__init__.py @@ -7,6 +7,9 @@ from .BaseEncryption import BaseEncryption class EncryptionMethods(str, Enum): + def __str__(self) -> str: + return self.value + NONE = "NoEncryption" JRNLV1 = "Jrnlv1Encryption" JRNLV2 = "Jrnlv2Encryption"