Merge branch 'add-devcontainer-for-codespaces' of https://github.com/emisargent/flask into add-devcontainer-for-codespaces

This commit is contained in:
emisargent 2023-02-10 18:22:54 +00:00
commit 4a50d91971

View file

@ -134,7 +134,7 @@ def _render(app: "Flask", template: Template, context: t.Dict[str, t.Any]) -> st
def render_template( def render_template(
template_name_or_list: t.Union[str, Template, t.List[t.Union[str, Template]]], template_name_or_list: t.Union[str, Template, t.List[t.Union[str, Template]]],
**context: t.Any **context: t.Any,
) -> str: ) -> str:
"""Render a template by name with the given context. """Render a template by name with the given context.
@ -180,7 +180,7 @@ def _stream(
def stream_template( def stream_template(
template_name_or_list: t.Union[str, Template, t.List[t.Union[str, Template]]], template_name_or_list: t.Union[str, Template, t.List[t.Union[str, Template]]],
**context: t.Any **context: t.Any,
) -> t.Iterator[str]: ) -> t.Iterator[str]:
"""Render a template by name with the given context as a stream. """Render a template by name with the given context as a stream.
This returns an iterator of strings, which can be used as a This returns an iterator of strings, which can be used as a