From 2760a8a8623e7d7f235434f005afab6e187632b7 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Tue, 2 Nov 2021 09:28:35 +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 87ae725..8b3fd2a 100644 --- a/odoo-stubs/modules/registry.pyi +++ b/odoo-stubs/modules/registry.pyi @@ -1,4 +1,6 @@ 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 @@ -61,7 +63,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: ...