diff --git a/odoo-stubs/fields.pyi b/odoo-stubs/fields.pyi index 8bb0915..70b74d2 100644 --- a/odoo-stubs/fields.pyi +++ b/odoo-stubs/fields.pyi @@ -371,8 +371,8 @@ class Selection(Field): def _setup_attrs(self, model_class: Type[BaseModel], name: str) -> None: ... def _selection_modules(self, model: BaseModel) -> dict[str, set[str, str]]: ... def _description_selection(self, env: Environment) -> _Selection: ... - def _default_group_expand(self, records: BaseModel, groups, domain, order) -> _Selection: ... - def get_values(self, env: Environment) -> _Selection: ... + def _default_group_expand(self, records: BaseModel, groups, domain, order) -> list[str]: ... + def get_values(self, env: Environment) -> list[str]: ... def convert_to_column(self, value, record: BaseModel, values: Any | None = ..., validate: bool = ...): ... def convert_to_cache(self, value, record: BaseModel, validate: bool = ...): ... def convert_to_export(self, value, record: BaseModel): ... diff --git a/odoo-stubs/tests/test_module_operations.pyi b/odoo-stubs/tests/test_module_operations.pyi index 6bf3a5d..8825e08 100644 --- a/odoo-stubs/tests/test_module_operations.pyi +++ b/odoo-stubs/tests/test_module_operations.pyi @@ -1,4 +1,4 @@ -from argparse import Namespace +from argparse import Action, Namespace BLACKLIST: set[str] IGNORE: tuple[str, ...] @@ -8,6 +8,13 @@ def install(db_name: str, module_id: int, module_name: str) -> None: ... def uninstall(db_name: str, module_id: int, module_name: str) -> None: ... def cycle(db_name: str, module_id: int, module_name: str) -> None: ... def parse_args() -> Namespace: ... -def test_full(args: Namespace) -> None: ... + +class UninstallAction(Action): + def __call__(self, parser, namespace, values, option_string = ...) -> None: ... + +class StandaloneAction(Action): + def __call__(self, parser, namespace, values, option_string = ...) -> None: ... + +def test_cycle(args: Namespace) -> None: ... def test_uninstall(args: Namespace) -> None: ... -def test_scripts(args: Namespace) -> None: ... +def test_standalone(args: Namespace) -> None: ...