From f577a35521792e7d26f01b65b67532fade950ef9 Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Wed, 7 May 2025 10:43:44 -0400 Subject: [PATCH] Update make_response to support additional data types Extended the data parameter to accept bytes, bytearray, or None in addition to strings. This ensures greater flexibility and compatibility for response creation. --- odoo-stubs/http.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo-stubs/http.pyi b/odoo-stubs/http.pyi index 9065aad..7132d02 100644 --- a/odoo-stubs/http.pyi +++ b/odoo-stubs/http.pyi @@ -261,7 +261,7 @@ class Request: def get_json_data(self): ... def make_response( self, - data: str, + data: str | bytes | bytearray | None, headers: list[tuple[str, Any]] | None = ..., cookies: Mapping | None = ..., status: int = ...,