mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
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.
This commit is contained in:
committed by
Trịnh Anh Ngọc
parent
6255b4de08
commit
09b25f1396
@@ -255,7 +255,7 @@ class Request:
|
|||||||
def get_json_data(self): ...
|
def get_json_data(self): ...
|
||||||
def make_response(
|
def make_response(
|
||||||
self,
|
self,
|
||||||
data: str,
|
data: str | bytes | bytearray | None,
|
||||||
headers: list[tuple[str, Any]] | None = ...,
|
headers: list[tuple[str, Any]] | None = ...,
|
||||||
cookies: Mapping | None = ...,
|
cookies: Mapping | None = ...,
|
||||||
status: int = ...,
|
status: int = ...,
|
||||||
|
|||||||
Reference in New Issue
Block a user