mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
from importlib.machinery import ModuleSpec
|
from importlib.machinery import ModuleSpec
|
||||||
|
from types import ModuleType
|
||||||
from typing import Iterator
|
from typing import Iterator
|
||||||
|
|
||||||
from .runner import OdooTestResult
|
from .result import OdooTestResult
|
||||||
from ..tests import OdooSuite
|
from .suite import OdooSuite
|
||||||
|
|
||||||
def get_test_modules(module: str) -> list: ...
|
def get_test_modules(module: str) -> list: ...
|
||||||
def _get_tests_modules(mod: ModuleSpec) -> list: ...
|
def _get_tests_modules(mod: ModuleSpec) -> list: ...
|
||||||
|
def _get_upgrade_test_modules(module) -> Iterator[ModuleType]: ...
|
||||||
def make_suite(module_names: list[str], position: str = ...) -> OdooSuite: ...
|
def make_suite(module_names: list[str], position: str = ...) -> OdooSuite: ...
|
||||||
def run_suite(suite: OdooSuite, module_name: str | None = ...) -> OdooTestResult: ...
|
def run_suite(suite: OdooSuite, module_name: str | None = ...) -> OdooTestResult: ...
|
||||||
def unwrap_suite(test) -> Iterator: ...
|
def unwrap_suite(test) -> Iterator: ...
|
||||||
|
|||||||
@@ -258,3 +258,4 @@ ADDRESS_REGEX: Pattern
|
|||||||
def street_split(street: str) -> dict[str, str]: ...
|
def street_split(street: str) -> dict[str, str]: ...
|
||||||
def is_list_of(values: list | tuple, type_: type | tuple[type, ...]) -> bool: ...
|
def is_list_of(values: list | tuple, type_: type | tuple[type, ...]) -> bool: ...
|
||||||
def has_list_types(values: list | tuple, types: Collection[type | tuple[type, ...]]) -> bool: ...
|
def has_list_types(values: list | tuple, types: Collection[type | tuple[type, ...]]) -> bool: ...
|
||||||
|
def get_flag(country_code: str) -> str: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user