Fixed a type-hint for a config decryption method

This commit is contained in:
VakarisZ 2021-06-07 11:30:10 +03:00
parent 53bb6f7879
commit c487a278fe
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import base64
import io
import json
import logging
from typing import Dict, Union
from typing import Dict
import pyAesCrypt
@ -27,7 +27,7 @@ def encrypt_config(config: Dict, password: str) -> str:
return ciphertext_b64.decode()
def decrypt_config(cyphertext: Union[str, dict], password: str) -> Dict:
def decrypt_config(cyphertext: str, password: str) -> Dict:
if not password:
raise NoCredentialsError