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,6 +1,8 @@
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from odoo.sql_db import Cursor
|
||||
|
||||
_logger: Any
|
||||
_schema: Any
|
||||
|
||||
@@ -83,7 +85,7 @@ class Registry(Mapping):
|
||||
def in_test_mode(self): ...
|
||||
def enter_test_mode(self, cr) -> None: ...
|
||||
def leave_test_mode(self) -> None: ...
|
||||
def cursor(self): ...
|
||||
def cursor(self) -> Cursor: ...
|
||||
|
||||
class DummyRLock:
|
||||
def acquire(self) -> None: ...
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import psycopg2.extensions
|
||||
from typing import Any
|
||||
|
||||
from odoo.tools import Callbacks
|
||||
|
||||
_logger: Any
|
||||
|
||||
def unbuffer(symb, cr): ...
|
||||
@@ -16,10 +18,10 @@ sql_counter: int
|
||||
def check(f, self, *args, **kwargs): ...
|
||||
|
||||
class BaseCursor:
|
||||
precommit: Any
|
||||
postcommit: Any
|
||||
prerollback: Any
|
||||
postrollback: Any
|
||||
precommit: Callbacks
|
||||
postcommit: Callbacks
|
||||
prerollback: Callbacks
|
||||
postrollback: Callbacks
|
||||
transaction: Any
|
||||
def __init__(self) -> None: ...
|
||||
def flush(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user