mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update for Odoo 11
This commit is contained in:
@@ -2,6 +2,7 @@ import psycopg2.extensions
|
||||
from typing import Any, Optional
|
||||
|
||||
_logger: Any
|
||||
types_mapping: Any
|
||||
|
||||
def unbuffer(symb: Any, cr: Any): ...
|
||||
def undecimalize(symb: Any, cr: Any): ...
|
||||
@@ -52,20 +53,16 @@ class Cursor:
|
||||
@property
|
||||
def closed(self): ...
|
||||
|
||||
class TestCursor:
|
||||
_savepoint_seq: Any = ...
|
||||
_closed: bool = ...
|
||||
_cursor: Any = ...
|
||||
_lock: Any = ...
|
||||
_savepoint: Any = ...
|
||||
def __init__(self, cursor: Any, lock: Any) -> None: ...
|
||||
class TestCursor(Cursor):
|
||||
_lock: Any
|
||||
def __init__(self, *args, **kwargs) -> None: ...
|
||||
def acquire(self) -> None: ...
|
||||
def release(self) -> None: ...
|
||||
def force_close(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def autocommit(self, on: Any) -> None: ...
|
||||
def commit(self) -> None: ...
|
||||
def rollback(self) -> None: ...
|
||||
def __enter__(self): ...
|
||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
||||
def __getattr__(self, name: Any): ...
|
||||
|
||||
class LazyCursor:
|
||||
_dbname: Any = ...
|
||||
@@ -98,6 +95,7 @@ class Connection:
|
||||
__pool: Any = ...
|
||||
def __init__(self, pool: Any, dbname: Any, dsn: Any) -> None: ...
|
||||
def cursor(self, serialized: bool = ...): ...
|
||||
def test_cursor(self, serialized: bool = ...): ...
|
||||
serialized_cursor: Any = ...
|
||||
def __bool__(self) -> None: ...
|
||||
__nonzero__: Any = ...
|
||||
|
||||
Reference in New Issue
Block a user