Update helpers.pyLoosen send_file type annotation to include t.IO[bytes] Include typing.IO[bytes] to align with Werkzeug and resolve issue #5776.
This commit is contained in:
parent
85c5d93cbd
commit
45eb69f8ba
1 changed files with 1 additions and 1 deletions
|
|
@ -398,7 +398,7 @@ def _prepare_send_file_kwargs(**kwargs: t.Any) -> dict[str, t.Any]:
|
|||
|
||||
|
||||
def send_file(
|
||||
path_or_file: os.PathLike[t.AnyStr] | str | t.BinaryIO,
|
||||
path_or_file: os.PathLike[t.AnyStr] | str | t.BinaryIO | t.IO[bytes],
|
||||
mimetype: str | None = None,
|
||||
as_attachment: bool = False,
|
||||
download_name: str | None = None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue