From ce35826da9dda5e90532a8e9208a319966c4d393 Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Fri, 11 Aug 2023 01:35:36 -0500 Subject: [PATCH] start on docstrings --- worlds/Files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worlds/Files.py b/worlds/Files.py index e9da7c1f87..3635660174 100644 --- a/worlds/Files.py +++ b/worlds/Files.py @@ -187,11 +187,13 @@ class APProcedurePatch(APContainer, metaclass=AutoPatchRegister): compress_type=zipfile.ZIP_STORED if file.endswith(".bsdiff4") else None) def get_file(self, file: str) -> bytes: + """ Retrieves a file from the patch package.""" if file not in self.files: self.read() return self.files[file] def write_file(self, file_name: str, file: bytes) -> None: + """ Writes a file to the patch package, to be retrieved upon patching. """ self.files[file_name] = file def patch(self, target: str):