From 9a134da31bafc12d31f75474a4b354c80545b9b5 Mon Sep 17 00:00:00 2001 From: Stefane Fermigier Date: Thu, 27 Jan 2022 11:43:42 +0100 Subject: [PATCH] Match typing declaration with implementation. --- src/flask/templating.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flask/templating.py b/src/flask/templating.py index bb3e7fd5dd..b39adb77ea 100644 --- a/src/flask/templating.py +++ b/src/flask/templating.py @@ -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.