Zillion: fix read_contents to be compatible with base class (#5015)

This commit is contained in:
Doug Hoskisson
2025-05-20 16:48:24 -07:00
committed by GitHub
parent feef0f484d
commit f3e00b6d62

View File

@@ -1,5 +1,5 @@
import os
from typing import BinaryIO
from typing import Any, BinaryIO
import zipfile
from typing_extensions import override
@@ -46,9 +46,10 @@ class ZillionPatch(APAutoPatchInterface):
compress_type=zipfile.ZIP_DEFLATED)
@override
def read_contents(self, opened_zipfile: zipfile.ZipFile) -> None:
super().read_contents(opened_zipfile)
def read_contents(self, opened_zipfile: zipfile.ZipFile) -> dict[str, Any]:
manifest = super().read_contents(opened_zipfile)
self.gen_data_str = opened_zipfile.read("gen_data.json").decode()
return manifest
@override
def patch(self, target: str) -> None: