Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
twiggler committed Oct 16, 2024
1 parent 9079bdb commit 47ce747
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acquire/tools/decrypter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import argparse
import base64
import contextlib
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 47ce747

Please sign in to comment.