Match typing declaration with implementation.

This commit is contained in:
Stefane Fermigier 2022-01-27 11:43:42 +01:00
parent fdac8a5404
commit 9a134da31b

View file

@ -131,7 +131,8 @@ def _render(template: Template, context: dict, app: "Flask") -> str:
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:
"""Renders a template from the template folder with the given
context.