Skip to content

Commit 75f1a80

Browse files
committed
Fix python type annotation.
1 parent 328ad3b commit 75f1a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def can_decode(self, input) -> bool:
842842
log_error("ZipPython: failed to read from BinaryView for signature check")
843843
return False
844844

845-
def perform_decode(self, data: bytes, params: dict) -> bytes | None:
845+
def perform_decode(self, data: bytes, params: dict) -> Optional[bytes]:
846846
try:
847847
zf = zipfile.ZipFile(io.BytesIO(data), "r")
848848
except Exception:

0 commit comments

Comments
 (0)