From 47ce747591149ec6a269203e67d2d2e530d302b0 Mon Sep 17 00:00:00 2001 From: Roel de Jong <12800443+twiggler@users.noreply.github.com> Date: Wed, 16 Oct 2024 13:02:37 +0200 Subject: [PATCH] Fix typing --- acquire/tools/decrypter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/acquire/tools/decrypter.py b/acquire/tools/decrypter.py index 6178d23..8720fba 100644 --- a/acquire/tools/decrypter.py +++ b/acquire/tools/decrypter.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import argparse import base64 import contextlib @@ -220,7 +222,7 @@ def timestamp(self) -> datetime: return datetime.fromtimestamp(self.file_header.timestamp, timezone.utc) -def decrypt_header(header, fingerprint: bytes, key_file=Path | None, key_server=str | None) -> bytes: +def decrypt_header(header, fingerprint: bytes, key_file: Path | None, key_server: str | None) -> bytes: if not key_file and not key_server: raise ValueError("Need either key file or key server")