Match typing declaration with implementation.
This commit is contained in:
parent
fdac8a5404
commit
9a134da31b
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(
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue