fix another fastapi type

This commit is contained in:
dni 2022-07-26 09:52:57 +02:00
parent e4078910c4
commit 345cf86544

View File

@ -73,7 +73,7 @@ class AESCipher(object):
final_key += key
return final_key[:output]
def decrypt(self, encrypted) -> str:
def decrypt(self, encrypted: str) -> str: #type: ignore
"""Decrypts a string using AES-256-CBC."""
passphrase = self.passphrase
encrypted = base64.b64decode(encrypted)