summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-10-13 09:12:06 -0700
committerDavid Lord <davidism@gmail.com>2022-10-13 09:12:06 -0700
commit5d9ece6d65ae4c2f57dd2bdccc28943984a767f9 (patch)
tree3442544957388eea6c7cd2b366603d398758dae0 /src
parente740cc65d5c54fbebb0f3483add794ec2b47187f (diff)
parentbf251517c1da7f543ec226906e5a412dcb3003ea (diff)
downloadjinja2-5d9ece6d65ae4c2f57dd2bdccc28943984a767f9.tar.gz
Merge branch '3.1.x'
Diffstat (limited to 'src')
-rw-r--r--src/jinja2/environment.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jinja2/environment.py b/src/jinja2/environment.py
index ea04e8b..88b2666 100644
--- a/src/jinja2/environment.py
+++ b/src/jinja2/environment.py
@@ -1253,7 +1253,7 @@ class Template:
t.blocks = namespace["blocks"]
# render function and module
- t.root_render_func = namespace["root"] # type: ignore
+ t.root_render_func = namespace["root"]
t._module = None
# debug and loader helpers
@@ -1349,7 +1349,7 @@ class Template:
ctx = self.new_context(dict(*args, **kwargs))
try:
- yield from self.root_render_func(ctx) # type: ignore
+ yield from self.root_render_func(ctx)
except Exception:
yield self.environment.handle_exception()
@@ -1532,7 +1532,7 @@ class TemplateModule:
" API you are using."
)
- body_stream = list(template.root_render_func(context)) # type: ignore
+ body_stream = list(template.root_render_func(context))
self._body_stream = body_stream
self.__dict__.update(context.get_exported())
@@ -1564,7 +1564,7 @@ class TemplateExpression:
def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Optional[t.Any]:
context = self._template.new_context(dict(*args, **kwargs))
- consume(self._template.root_render_func(context)) # type: ignore
+ consume(self._template.root_render_func(context))
rv = context.vars["result"]
if self._undefined_to_none and isinstance(rv, Undefined):
rv = None