Skip to content

Commit c14e56b

Browse files
authored
Add rv annotaton to send_static_file() (#4216)
1 parent d261f14 commit c14e56b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/2and3/flask/helpers.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def flash(message: Any, category: str = ...) -> None: ...
1919
def get_flashed_messages(with_categories: bool = ..., category_filter: Any = ...): ...
2020
def send_file(filename_or_fp: Any, mimetype: Optional[Any] = ..., as_attachment: bool = ..., attachment_filename: Optional[Any] = ..., add_etags: bool = ..., cache_timeout: Optional[Any] = ..., conditional: bool = ..., last_modified: Optional[Any] = ...) -> Response: ...
2121
def safe_join(directory: Any, *pathnames: Any): ...
22-
def send_from_directory(directory: Any, filename: Any, **options: Any): ...
22+
def send_from_directory(directory: Any, filename: Any, **options: Any) -> Response: ...
2323
def get_root_path(import_name: Any): ...
2424
def find_package(import_name: Any): ...
2525

@@ -44,7 +44,7 @@ class _PackageBoundObject:
4444
def has_static_folder(self): ...
4545
def jinja_loader(self): ...
4646
def get_send_file_max_age(self, filename: Any): ...
47-
def send_static_file(self, filename: Any): ...
47+
def send_static_file(self, filename: Any) -> Response: ...
4848
def open_resource(self, resource: Any, mode: str = ...): ...
4949

5050
def total_seconds(td: Any): ...

0 commit comments

Comments
 (0)