Merge pull request #4432 from sfermigier/main

Match typing declaration with implementation.
This commit is contained in:
David Lord 2022-02-08 10:27:11 -08:00 committed by GitHub
commit bc094dbe6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.