From 0cccf5d31e5a6eb9df15faf1046ed33bd1e20af5 Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Sat, 20 Jul 2024 13:59:47 -0400 Subject: [PATCH] Add fetchall method to sql_db.pyi This addition enhances the functionality of the database interface by allowing retrieval of all rows in a query result as tuples. It complements existing methods like dictfetchall and provides more options for data handling. --- odoo-stubs/sql_db.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo-stubs/sql_db.pyi b/odoo-stubs/sql_db.pyi index 1ce52e1..84188dd 100644 --- a/odoo-stubs/sql_db.pyi +++ b/odoo-stubs/sql_db.pyi @@ -33,6 +33,7 @@ class Cursor: def dictfetchone(self) -> dict[str, Any] | None: ... def dictfetchmany(self, size) -> list[dict[str, Any]]: ... def dictfetchall(self) -> list[dict[str, Any]]: ... + def fetchall(self) -> list[tuple]: ... def __del__(self) -> None: ... def execute( self, query, params: Any | None = ..., log_exceptions: Any | None = ...