mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2025-04-27 22:01:01 -04:00
Fix typing issue with emunand class
This commit is contained in:
parent
894aa3a04b
commit
b782e5dea5
@ -17,12 +17,18 @@ class EmuNAND:
|
|||||||
EmuNAND, and can optionally take in a callback function to send logs to.
|
EmuNAND, and can optionally take in a callback function to send logs to.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
emunand_root : str
|
----------
|
||||||
|
emunand_root : str, pathlib.Path
|
||||||
The path to the EmuNAND root directory.
|
The path to the EmuNAND root directory.
|
||||||
callback : function
|
callback : function
|
||||||
A callback function to send EmuNAND logs to.
|
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.emunand_root = pathlib.Path(emunand_root)
|
||||||
self.log = callback if callback is not None else None
|
self.log = callback if callback is not None else None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user