mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Fix Cursor type
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from collections import Mapping, defaultdict as defaultdict
|
||||
|
||||
from odoo.sql_db import Cursor
|
||||
from odoo.tools import table_exists as table_exists
|
||||
from typing import Any, Optional
|
||||
|
||||
from ..sql_db import Cursor
|
||||
|
||||
_logger: Any
|
||||
|
||||
class Registry(Mapping):
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import psycopg2.extensions
|
||||
from typing import Any, Optional
|
||||
from typing import Any, Optional, TypeVar
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
_logger: Any
|
||||
|
||||
@@ -45,7 +47,7 @@ class Cursor:
|
||||
def _pop_event_handlers(self): ...
|
||||
def commit(self): ...
|
||||
def rollback(self): ...
|
||||
def __enter__(self): ...
|
||||
def __enter__(self: _T) -> _T: ...
|
||||
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
|
||||
def savepoint(self) -> None: ...
|
||||
def __getattr__(self, name: Any): ...
|
||||
|
||||
Reference in New Issue
Block a user