massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Flask / flask / helpers.pyi
1 from typing import Any
2
3 from .cli import AppGroup
4 from .wrappers import Response
5
6 def get_env(): ...
7 def get_debug_flag(): ...
8 def get_load_dotenv(default: bool = ...): ...
9 def stream_with_context(generator_or_function: Any): ...
10 def make_response(*args: Any) -> Response: ...
11 def url_for(endpoint: str, **values: Any) -> str: ...
12 def get_template_attribute(template_name: Any, attribute: Any): ...
13 def flash(message: Any, category: str = ...) -> None: ...
14 def get_flashed_messages(with_categories: bool = ..., category_filter: Any = ...): ...
15 def send_file(
16     filename_or_fp: Any,
17     mimetype: Any | None = ...,
18     as_attachment: bool = ...,
19     attachment_filename: Any | None = ...,
20     add_etags: bool = ...,
21     cache_timeout: Any | None = ...,
22     conditional: bool = ...,
23     last_modified: Any | None = ...,
24 ) -> Response: ...
25 def safe_join(directory: Any, *pathnames: Any): ...
26 def send_from_directory(directory: Any, filename: Any, **options: Any) -> Response: ...
27 def get_root_path(import_name: Any): ...
28 def find_package(import_name: Any): ...
29
30 class locked_cached_property:
31     __name__: Any = ...
32     __module__: Any = ...
33     __doc__: Any = ...
34     func: Any = ...
35     lock: Any = ...
36     def __init__(self, func: Any, name: Any | None = ..., doc: Any | None = ...) -> None: ...
37     def __get__(self, obj: Any, type: Any | None = ...): ...
38
39 class _PackageBoundObject:
40     import_name: Any = ...
41     template_folder: Any = ...
42     root_path: Any = ...
43     cli: AppGroup = ...
44     def __init__(self, import_name: Any, template_folder: Any | None = ..., root_path: Any | None = ...) -> None: ...
45     static_folder: Any = ...
46     static_url_path: Any = ...
47     @property
48     def has_static_folder(self): ...
49     def jinja_loader(self): ...
50     def get_send_file_max_age(self, filename: Any): ...
51     def send_static_file(self, filename: Any) -> Response: ...
52     def open_resource(self, resource: Any, mode: str = ...): ...
53
54 def total_seconds(td: Any): ...
55 def is_ip(value: Any): ...