From f1dac7c0e35254d179958b771262192b51324c8b Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Tue, 2 Nov 2021 09:28:22 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/modules/registry.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odoo-stubs/modules/registry.pyi b/odoo-stubs/modules/registry.pyi index 54ea3c8..a5fc583 100644 --- a/odoo-stubs/modules/registry.pyi +++ b/odoo-stubs/modules/registry.pyi @@ -1,6 +1,8 @@ from collections import Mapping from typing import Any, Optional +from odoo.sql_db import Cursor + _logger: Any _schema: Any @@ -65,7 +67,7 @@ class Registry(Mapping): def in_test_mode(self): ... def enter_test_mode(self, cr: Any) -> None: ... def leave_test_mode(self) -> None: ... - def cursor(self): ... + def cursor(self) -> Cursor: ... class DummyRLock: def acquire(self) -> None: ...