From a89c20870cb0e3101e6a6905b51cd9cac4486cf4 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Thu, 30 Nov 2023 04:00:41 -0600 Subject: [PATCH] clean defaults and docstring --- worlds/Files.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/worlds/Files.py b/worlds/Files.py index a4a0211d74..c1149684a0 100644 --- a/worlds/Files.py +++ b/worlds/Files.py @@ -44,7 +44,7 @@ current_patch_version: int = 6 class AutoPatchExtensionRegister(type): extension_types: ClassVar[Dict[str, AutoPatchExtensionRegister]] = {} - required_extensions: List[str] + required_extensions: List[str] = [] def __new__(mcs, name: str, bases: Tuple[type, ...], dct: Dict[str, Any]) -> AutoPatchExtensionRegister: # construct class @@ -151,7 +151,7 @@ class APProcedurePatch(APContainer, metaclass=AutoPatchRegister): source_data: bytes patch_file_ending: str = "" result_file_ending: str = ".sfc" - files: Dict[str, bytes] = dict() + files: Dict[str, bytes] = {} @classmethod def get_source_data(cls) -> bytes: @@ -223,7 +223,7 @@ class APProcedurePatch(APContainer, metaclass=AutoPatchRegister): class APDeltaPatch(APProcedurePatch): - """An APContainer that additionally has delta.bsdiff4 + """An APProcedurePatch that additionally has delta.bsdiff4 containing a delta patch to get the desired file, often a rom.""" procedure = [ @@ -303,7 +303,7 @@ class APPatchExtension(metaclass=AutoPatchExtensionRegister): Patch extension functions must return the changed bytes. """ game: str - required_extensions: List[str] = list() + required_extensions: List[str] = [] @staticmethod def apply_bsdiff4(caller: APProcedurePatch, rom: bytes, patch: str):