mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
20
odoo-stubs/tools/_vendor/send_file.pyi
Normal file
20
odoo-stubs/tools/_vendor/send_file.pyi
Normal file
@@ -0,0 +1,20 @@
|
||||
from datetime import datetime
|
||||
from os import PathLike
|
||||
from typing import Callable, IO
|
||||
|
||||
from werkzeug import Response
|
||||
|
||||
def send_file(
|
||||
path_or_file: PathLike | str | IO[bytes],
|
||||
environ: dict,
|
||||
mimetype: str | None = ...,
|
||||
as_attachment: bool = ...,
|
||||
download_name: str | None = ...,
|
||||
conditional: bool = ...,
|
||||
etag: bool | str = ...,
|
||||
last_modified: datetime | int | float | None = ...,
|
||||
max_age: int | Callable[[str | None], int | None] | None = ...,
|
||||
use_x_sendfile: bool = ...,
|
||||
response_class: type[Response] = ...,
|
||||
_root_path: PathLike | str | None = ...,
|
||||
) -> Response: ...
|
||||
Reference in New Issue
Block a user