forked from orbit-oss/flask
Merge pull request #4432 from sfermigier/main
Match typing declaration with implementation.
This commit is contained in:
commit
bc094dbe6a
1 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,8 @@ def _render(template: Template, context: dict, app: "Flask") -> str:
|
||||||
|
|
||||||
|
|
||||||
def render_template(
|
def render_template(
|
||||||
template_name_or_list: t.Union[str, t.List[str]], **context: t.Any
|
template_name_or_list: t.Union[str, Template, t.List[t.Union[str, Template]]],
|
||||||
|
**context: t.Any
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Renders a template from the template folder with the given
|
"""Renders a template from the template folder with the given
|
||||||
context.
|
context.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue