Skip to content

Commit

Permalink
type hint fix for flask.send_file (#5336)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism authored Nov 15, 2023
2 parents 66743d4 + 4104f29 commit b97165d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Version 3.0.1

Unreleased

- Correct type for ``path`` argument to ``send_file``. :issue:`5230`


Version 3.0.0
-------------
Expand Down
2 changes: 1 addition & 1 deletion src/flask/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b97165d

Please sign in to comment.