small corrections
Python Code Quality / python-code-quality (push) Successful in 11s
Python Test / python-test (push) Successful in 13s

This commit is contained in:
Brian Bjarke Jensen
2026-01-08 08:33:00 +01:00
parent a616078fa8
commit a81c0964b0
6 changed files with 13 additions and 16 deletions
@@ -4,7 +4,6 @@ from io import BytesIO
import os
import zipfile
from pathlib import Path
from typing import Dict
from .data_zipper_interface import DataZipperInterface
@@ -44,7 +43,7 @@ class DataZipper(DataZipperInterface):
@staticmethod
def unzip_data(
input_data: BytesIO,
) -> Dict[str, BytesIO]:
) -> dict[str, BytesIO]:
"""Unzips the data of a zip file into memory.
Args:
@@ -1,7 +1,6 @@
"""Definition of DataZipperInterface."""
from io import BytesIO
from typing import Dict
from abc import ABC, abstractmethod
from pathlib import Path
@@ -26,7 +25,7 @@ class DataZipperInterface(ABC):
@abstractmethod
def unzip_data(
input_data: BytesIO,
) -> Dict[str, BytesIO]:
) -> dict[str, BytesIO]:
"""Unzips data from the input path and saves it in memory.
Args:
@@ -4,7 +4,6 @@ import os
import json
import base64
import secrets
from typing import Tuple
from .password_provider_interface import PasswordProviderInterface
@@ -30,7 +29,7 @@ class PasswordProviderExample(PasswordProviderInterface):
return url_safe_string
@classmethod
def get_decryption_keys(cls) -> Tuple[str, dict[str, str] | None]:
def get_decryption_keys(cls) -> tuple[str, dict[str, str] | None]:
"""Placeholder function to get decryption keys. Implement your own logic here.
Returns:
@@ -1,6 +1,5 @@
"""Definition of PasswordProviderInterface."""
from typing import Tuple
from abc import ABC, abstractmethod
@@ -18,7 +17,7 @@ class PasswordProviderInterface(ABC):
@classmethod
@abstractmethod
def get_decryption_keys(cls) -> Tuple[str, dict[str, str] | None]:
def get_decryption_keys(cls) -> tuple[str, dict[str, str] | None]:
"""Get decryption keys for decryption.
Returns: