Skip to content

Commit

Permalink
Merge branch '3.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Nov 15, 2023
2 parents 258311d + b97165d commit d611989
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,11 @@
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 pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "Flask"
version = "3.0.0"
version = "3.0.1.dev"
description = "A simple framework for building complex web applications."
readme = "README.rst"
license = {file = "LICENSE.rst"}
Expand Down
2 changes: 1 addition & 1 deletion src/flask/helpers.py
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 d611989

Please sign in to comment.