mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
17 lines
541 B
Python
17 lines
541 B
Python
from typing import Callable, TypeVar
|
|
|
|
from ..sql_db import Cursor
|
|
|
|
_CallableT = TypeVar("_CallableT", bound=Callable)
|
|
|
|
PG_CONCURRENCY_ERRORS_TO_RETRY: tuple[str, str, str]
|
|
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
|
|
|
def dispatch(method: str, params): ...
|
|
def check(f: _CallableT) -> _CallableT: ...
|
|
def execute_cr(cr: Cursor, uid: int, obj: str, method: str, *args, **kw): ...
|
|
def execute_kw(
|
|
db: str, uid: int, obj: str, method: str, args, kw: dict | None = ...
|
|
): ...
|
|
def execute(db: str, uid: int, obj: str, method: str, *args, **kw): ...
|