mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
Zillion: fix read_contents
to be compatible with base class (#5015)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user