Merge branch '3.0.x'

This commit is contained in:
David Lord 2023-11-15 13:03:05 -08:00
commit d61198941a
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 10 additions and 2 deletions

View file

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

View file

@ -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"}

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,