massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Flask / flask / templating.pyi
1 from typing import Any, Iterable, Text
2
3 from jinja2 import BaseLoader, Environment as BaseEnvironment
4
5 class Environment(BaseEnvironment):
6     app: Any = ...
7     def __init__(self, app: Any, **options: Any) -> None: ...
8
9 class DispatchingJinjaLoader(BaseLoader):
10     app: Any = ...
11     def __init__(self, app: Any) -> None: ...
12     def get_source(self, environment: Any, template: Any): ...
13     def list_templates(self): ...
14
15 def render_template(template_name_or_list: Text | Iterable[Text], **context: Any) -> Text: ...
16 def render_template_string(source: Text, **context: Any) -> Text: ...