Fix typing error on CI.

This commit is contained in:
Mikaël Capelle
2023-09-19 21:41:11 +02:00
parent c4a6e2266d
commit 4655e1f3eb
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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",
+2 -2
View File
@@ -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())
+1 -1
View File
@@ -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 = {}