Skip to content
Myr

type hint fix for flask.send_file (#5336)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by GitHub · parents 66743d4, 4104f29 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/flask/helpers.py+1 added-1 removed
385 unmodified lines
386 return kwargs387388389def send_file(390 path_or_file: os.PathLike | str | t.BinaryIO,390 path_or_file: os.PathLike[t.AnyStr] | str | t.BinaryIO,391 mimetype: str | None = None,392 as_attachment: bool = False,393 download_name: str | None = None,394 conditional: bool = True,
228 unmodified lines
modified:CHANGES.rst+2 added
1 unmodified line
2-------------34Unreleased56- Correct type for ``path`` argument to ``send_file``. :issue:`5230`789Version 3.0.010-------------1112Released 2023-09-30
1526 unmodified lines