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,2 +1,10 @@
|
|||||||
from . import cloc as cloc, deploy as deploy, populate as populate, scaffold as scaffold, server as server, shell as shell, start as start
|
from . import (
|
||||||
|
cloc as cloc,
|
||||||
|
deploy as deploy,
|
||||||
|
populate as populate,
|
||||||
|
scaffold as scaffold,
|
||||||
|
server as server,
|
||||||
|
shell as shell,
|
||||||
|
start as start
|
||||||
|
)
|
||||||
from .command import Command as Command, main as main
|
from .command import Command as Command, main as main
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class Cloc(Command):
|
class Cloc(Command):
|
||||||
def run(self, args: Any) -> None: ...
|
def run(self, args) -> None: ...
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
from typing import Any
|
commands: dict[str, CommandType]
|
||||||
|
|
||||||
commands: Any
|
|
||||||
|
|
||||||
class CommandType(type):
|
class CommandType(type):
|
||||||
def __init__(cls, name: Any, bases: Any, attrs: Any) -> None: ...
|
def __init__(cls, name, bases, attrs) -> None: ...
|
||||||
|
|
||||||
Command: Any
|
Command: CommandType
|
||||||
|
|
||||||
class Help(Command):
|
class Help(Command):
|
||||||
def run(self, args: Any) -> None: ...
|
def run(self, args) -> None: ...
|
||||||
|
|
||||||
def main() -> None: ...
|
def main() -> None: ...
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ from . import Command
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
class Deploy(Command):
|
class Deploy(Command):
|
||||||
session: Any = ...
|
session: Any
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def deploy_module(self, module_path: Any, url: Any, login: Any, password: Any, db: str = ..., force: bool = ...): ...
|
def deploy_module(self, module_path, url, login, password, db: str = ..., force: bool = ...): ...
|
||||||
def login_upload_module(self, module_file: Any, url: Any, login: Any, password: Any, db: Any, force: bool = ...): ...
|
def login_upload_module(self, module_file, url, login, password, db, force: bool = ...): ...
|
||||||
def zip_module(self, path: Any): ...
|
def zip_module(self, path): ...
|
||||||
def run(self, cmdargs: Any) -> None: ...
|
def run(self, cmdargs) -> None: ...
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
from typing import Any
|
from ..api import Environment
|
||||||
|
from ..models import BaseModel
|
||||||
_logger: Any
|
|
||||||
|
|
||||||
class Populate(Command):
|
class Populate(Command):
|
||||||
def run(self, cmdargs: Any) -> None: ...
|
def run(self, cmdargs) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def populate(cls, env: Any, size: Any, model_patterns: bool = ...): ...
|
def populate(cls, env: Environment, size, model_patterns: bool = ...) -> dict | None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_ordered_models(cls, env: Any, model_patterns: bool = ...): ...
|
def _get_ordered_models(cls, env: Environment, model_patterns: bool = ...) -> list[BaseModel]: ...
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
from typing import Any, Optional
|
from typing import Any
|
||||||
|
|
||||||
class Scaffold(Command):
|
class Scaffold(Command):
|
||||||
def run(self, cmdargs: Any) -> None: ...
|
def run(self, cmdargs) -> None: ...
|
||||||
def epilog(self): ...
|
def epilog(self): ...
|
||||||
|
|
||||||
builtins: Any
|
builtins: Any
|
||||||
|
|
||||||
def snake(s: Any): ...
|
def snake(s): ...
|
||||||
def pascal(s: Any): ...
|
def pascal(s): ...
|
||||||
def directory(p: Any, create: bool = ...): ...
|
def directory(p, create: bool = ...): ...
|
||||||
|
|
||||||
env: Any
|
env: Any
|
||||||
|
|
||||||
class template:
|
class template:
|
||||||
id: Any = ...
|
id: Any
|
||||||
path: Any = ...
|
path: Any
|
||||||
def __init__(self, identifier: Any) -> None: ...
|
def __init__(self, identifier) -> None: ...
|
||||||
def __str__(self): ...
|
def __str__(self): ...
|
||||||
def files(self) -> None: ...
|
def files(self) -> None: ...
|
||||||
def render_to(self, modname: Any, directory: Any, params: Optional[Any] = ...) -> None: ...
|
def render_to(self, modname, directory, params: Any | None = ...) -> None: ...
|
||||||
|
|
||||||
def die(message: Any, code: int = ...) -> None: ...
|
def die(message, code: int = ...) -> None: ...
|
||||||
def warn(message: Any) -> None: ...
|
def warn(message) -> None: ...
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ _logger: Any
|
|||||||
def check_root_user() -> None: ...
|
def check_root_user() -> None: ...
|
||||||
def check_postgres_user() -> None: ...
|
def check_postgres_user() -> None: ...
|
||||||
def report_configuration() -> None: ...
|
def report_configuration() -> None: ...
|
||||||
def rm_pid_file(main_pid: Any) -> None: ...
|
def rm_pid_file(main_pid) -> None: ...
|
||||||
def setup_pid_file() -> None: ...
|
def setup_pid_file() -> None: ...
|
||||||
def export_translation() -> None: ...
|
def export_translation() -> None: ...
|
||||||
def import_translation() -> None: ...
|
def import_translation() -> None: ...
|
||||||
def main(args: Any) -> None: ...
|
def main(args) -> None: ...
|
||||||
|
|
||||||
class Server(Command):
|
class Server(Command):
|
||||||
def run(self, args: Any) -> None: ...
|
def run(self, args) -> None: ...
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
import code
|
import code
|
||||||
from . import Command
|
from . import Command
|
||||||
from typing import Any, Optional
|
from typing import Any
|
||||||
|
|
||||||
_logger: Any
|
_logger: Any
|
||||||
|
|
||||||
def raise_keyboard_interrupt(*a: Any) -> None: ...
|
def raise_keyboard_interrupt(*a) -> None: ...
|
||||||
|
|
||||||
class Console(code.InteractiveConsole):
|
class Console(code.InteractiveConsole):
|
||||||
def __init__(self, locals: Optional[Any] = ..., filename: str = ...) -> None: ...
|
def __init__(self, locals: Any | None = ..., filename: str = ...) -> None: ...
|
||||||
|
|
||||||
class Shell(Command):
|
class Shell(Command):
|
||||||
supported_shells: Any = ...
|
supported_shells: Any
|
||||||
def init(self, args: Any) -> None: ...
|
def init(self, args) -> None: ...
|
||||||
def console(self, local_vars: Any): ...
|
def console(self, local_vars): ...
|
||||||
def ipython(self, local_vars: Any) -> None: ...
|
def ipython(self, local_vars) -> None: ...
|
||||||
def ptpython(self, local_vars: Any) -> None: ...
|
def ptpython(self, local_vars) -> None: ...
|
||||||
def bpython(self, local_vars: Any) -> None: ...
|
def bpython(self, local_vars) -> None: ...
|
||||||
def python(self, local_vars: Any) -> None: ...
|
def python(self, local_vars) -> None: ...
|
||||||
def shell(self, dbname: Any) -> None: ...
|
def shell(self, dbname) -> None: ...
|
||||||
def run(self, args: Any): ...
|
def run(self, args): ...
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
from . import Command
|
from . import Command
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
class Start(Command):
|
class Start(Command):
|
||||||
def get_module_list(self, path: Any): ...
|
def get_module_list(self, path): ...
|
||||||
def run(self, cmdargs: Any): ...
|
def run(self, cmdargs): ...
|
||||||
|
|
||||||
def die(message: Any, code: int = ...) -> None: ...
|
def die(message, code: int = ...) -> None: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user