type hint fix for flask.send_file

This commit is contained in:
Daniel Isaac 2023-11-13 16:58:47 +05:30 committed by David Lord
parent 66743d4f9d
commit 4104f29956
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,8 @@ Version 3.0.1
Unreleased
- Correct type for ``path`` argument to ``send_file``. :issue:`5230`
Version 3.0.0
-------------

View file

@ -387,7 +387,7 @@ def _prepare_send_file_kwargs(**kwargs: t.Any) -> dict[str, t.Any]:
def send_file(
path_or_file: os.PathLike | str | t.BinaryIO,
path_or_file: os.PathLike[t.AnyStr] | str | t.BinaryIO,
mimetype: str | None = None,
as_attachment: bool = False,
download_name: str | None = None,