@@ -1253,7 +1253,7 @@ def _from_namespace(
12531253 t .blocks = namespace ["blocks" ]
12541254
12551255 # render function and module
1256- t .root_render_func = namespace ["root" ] # type: ignore
1256+ t .root_render_func = namespace ["root" ]
12571257 t ._module = None
12581258
12591259 # debug and loader helpers
@@ -1349,7 +1349,7 @@ async def to_list() -> t.List[str]:
13491349 ctx = self .new_context (dict (* args , ** kwargs ))
13501350
13511351 try :
1352- yield from self .root_render_func (ctx ) # type: ignore
1352+ yield from self .root_render_func (ctx )
13531353 except Exception :
13541354 yield self .environment .handle_exception ()
13551355
@@ -1532,7 +1532,7 @@ def __init__(
15321532 " API you are using."
15331533 )
15341534
1535- body_stream = list (template .root_render_func (context )) # type: ignore
1535+ body_stream = list (template .root_render_func (context ))
15361536
15371537 self ._body_stream = body_stream
15381538 self .__dict__ .update (context .get_exported ())
@@ -1564,7 +1564,7 @@ def __init__(self, template: Template, undefined_to_none: bool) -> None:
15641564
15651565 def __call__ (self , * args : t .Any , ** kwargs : t .Any ) -> t .Optional [t .Any ]:
15661566 context = self ._template .new_context (dict (* args , ** kwargs ))
1567- consume (self ._template .root_render_func (context )) # type: ignore
1567+ consume (self ._template .root_render_func (context ))
15681568 rv = context .vars ["result" ]
15691569 if self ._undefined_to_none and isinstance (rv , Undefined ):
15701570 rv = None
0 commit comments