relax type hint for bytes io

This commit is contained in:
Tero Vuotila 2025-07-16 12:21:50 +03:00 committed by David Lord
parent c56c5ec7c4
commit d44f1c6523
No known key found for this signature in database
GPG Key ID: 43368A7AA8CC5926
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Unreleased
- When using ``follow_redirects`` in the test client, the final state
of ``session`` is correct. :issue:`5786`
- Relax type hint for passing bytes IO to ``send_file``. :issue:`5776`
Version 3.1.1

View File

@ -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.IO[bytes],
mimetype: str | None = None,
as_attachment: bool = False,
download_name: str | None = None,