From 136b3ea92b5581c24703690df1e14e5ab6951af8 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Tue, 2 Nov 2021 09:29:07 +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 c57ff46..da6df0f 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 @@ -62,7 +64,7 @@ class Registry(Mapping): def in_test_mode(self): ... def enter_test_mode(self) -> None: ... def leave_test_mode(self) -> None: ... - def cursor(self): ... + def cursor(self) -> Cursor: ... class DummyRLock: def acquire(self) -> None: ...