diff --git a/odoo-stubs/modules/module.pyi b/odoo-stubs/modules/module.pyi index dc81593..3854e74 100644 --- a/odoo-stubs/modules/module.pyi +++ b/odoo-stubs/modules/module.pyi @@ -1,8 +1,11 @@ from types import ModuleType from typing import Any, Literal, MutableSequence +from ..tools import pycompat as pycompat + MANIFEST_NAMES: tuple[str, ...] README: list[str] +_DEFAULT_MANIFEST: dict[str, Any] def ad_paths() -> MutableSequence[str]: ... @@ -30,8 +33,9 @@ get_module_resource = get_resource_path def get_resource_from_path(path: str) -> tuple[str, str, str] | None: ... def get_module_icon(module: str) -> str: ... def module_manifest(path: str) -> str | None: ... -def read_manifest(addons_path: str, module: str): ... def get_module_root(path: str) -> str | None: ... +def load_manifest(module: str, mod_path: str | None = ...) -> dict[str, Any]: ... +def get_manifest(module: str, mod_path: str | None = ...) -> dict[str, Any]: ... def load_information_from_description_file(module: str, mod_path: str | None = ...) -> dict: ... def load_openerp_module(module_name: str) -> None: ... def get_modules() -> list[str]: ...