mirror of
https://github.com/ModOrganizer2/pystubs-generation.git
synced 2026-07-27 14:07:13 -07:00
Fix typing error on CI.
This commit is contained in:
@@ -88,7 +88,7 @@ def add_mobase_widgets_header(writer: Writer):
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser("stubs generator for the MO2 python interface")
|
||||
parser.add_argument(
|
||||
"install_dir",
|
||||
|
||||
@@ -29,8 +29,8 @@ def load_mobase(path: os.PathLike[Any]) -> Module:
|
||||
[str(path), str(path.joinpath("dlls")), os.environ.get("PATH", "")]
|
||||
)
|
||||
else:
|
||||
os.add_dll_directory(str(path))
|
||||
os.add_dll_directory(str(path.joinpath("dlls")))
|
||||
os.add_dll_directory(str(path)) # type: ignore
|
||||
os.add_dll_directory(str(path.joinpath("dlls"))) # type: ignore
|
||||
|
||||
# We need to add plugins/data to sys.path, mainly for PyQt6
|
||||
sys.path.insert(1, path.joinpath("plugins", "plugin_python", "libs").as_posix())
|
||||
|
||||
@@ -14,7 +14,7 @@ class MobaseRegister:
|
||||
|
||||
objects: dict[str, Class | list[Function] | PyTyping]
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
self.raw_objects: dict[str, type] = OrderedDict()
|
||||
self.objects = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user