From fced26626046556e6460d231f6cbfb6971145217 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 8b3c7a4..72bfa0e 100644 --- a/odoo-stubs/http.pyi +++ b/odoo-stubs/http.pyi @@ -245,7 +245,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 = ...,