From b782e5dea5f08405a08a2a6f99a0b4d01e9c4df2 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Thu, 8 Aug 2024 13:39:22 -0400 Subject: [PATCH] Fix typing issue with emunand class --- src/libWiiPy/title/emunand.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/libWiiPy/title/emunand.py b/src/libWiiPy/title/emunand.py index b95f8ae..7b89b6f 100644 --- a/src/libWiiPy/title/emunand.py +++ b/src/libWiiPy/title/emunand.py @@ -17,12 +17,18 @@ class EmuNAND: EmuNAND, and can optionally take in a callback function to send logs to. Parameters - emunand_root : str + ---------- + emunand_root : str, pathlib.Path The path to the EmuNAND root directory. callback : function A callback function to send EmuNAND logs to. + + Attributes + ---------- + emunand_root : pathlib.Path + The path to the EmuNAND root directory. """ - def __init__(self, emunand_root: str, callback: callable = None): + def __init__(self, emunand_root: str | pathlib.Path, callback: callable = None): self.emunand_root = pathlib.Path(emunand_root) self.log = callback if callback is not None else None