From 75f1a8000f391c5f9eb2c21df74a52237aae2fb6 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 30 Oct 2025 07:17:28 -0400 Subject: Fix python type annotation. --- python/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/transform.py b/python/transform.py index 35fa8f68..276b005d 100644 --- a/python/transform.py +++ b/python/transform.py @@ -842,7 +842,7 @@ class ZipPython(Transform): log_error("ZipPython: failed to read from BinaryView for signature check") return False - def perform_decode(self, data: bytes, params: dict) -> bytes | None: + def perform_decode(self, data: bytes, params: dict) -> Optional[bytes]: try: zf = zipfile.ZipFile(io.BytesIO(data), "r") except Exception: -- cgit v1.3.1