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:
@@ -4,6 +4,8 @@ class Command:
|
|||||||
name: str
|
name: str
|
||||||
def __init_subclass__(cls) -> None: ...
|
def __init_subclass__(cls) -> None: ...
|
||||||
|
|
||||||
|
ODOO_HELP: str
|
||||||
|
|
||||||
class Help(Command):
|
class Help(Command):
|
||||||
def run(self, args) -> None: ...
|
def run(self, args) -> None: ...
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
|
|
||||||
class GenProxyToken(Command):
|
class GenProxyToken(Command):
|
||||||
command_name: str
|
|
||||||
def __init__(self) -> None: ...
|
|
||||||
def generate_token(self, length: int = ...): ...
|
def generate_token(self, length: int = ...): ...
|
||||||
def run(self, cmdargs) -> None: ...
|
def run(self, cmdargs) -> None: ...
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
|
|
||||||
class TSConfig(Command):
|
class TSConfig(Command):
|
||||||
command_name: str
|
|
||||||
def __init__(self) -> None: ...
|
|
||||||
def get_module_list(self, path): ...
|
def get_module_list(self, path): ...
|
||||||
def clean_path(self, path): ...
|
def clean_path(self, path): ...
|
||||||
def prefix_suffix_path(self, path, prefix, suffix): ...
|
def prefix_suffix_path(self, path, prefix, suffix): ...
|
||||||
|
|||||||
@@ -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: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user