diff options
| author | Brian Potchik <brian@vector35.com> | 2025-10-30 07:17:28 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-10-30 07:17:28 -0400 |
| commit | 75f1a8000f391c5f9eb2c21df74a52237aae2fb6 (patch) | |
| tree | 293dc07ebabea14b81ef2fd814d0f9520eec3a06 /python/transform.py | |
| parent | 328ad3b3126d7ffe00d41bece99d09c176b932b2 (diff) | |
Fix python type annotation.
Diffstat (limited to 'python/transform.py')
| -rw-r--r-- | python/transform.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
