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

@ -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,