From f3e00b6d62ec773a35a1abdc867a2d95fb546d43 Mon Sep 17 00:00:00 2001 From: Doug Hoskisson Date: Tue, 20 May 2025 16:48:24 -0700 Subject: [PATCH] Zillion: fix `read_contents` to be compatible with base class (#5015) --- worlds/zillion/patch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/worlds/zillion/patch.py b/worlds/zillion/patch.py index 0eee3315..e28d70f1 100644 --- a/worlds/zillion/patch.py +++ b/worlds/zillion/patch.py @@ -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: