Skip to content

Commit

Permalink
return an aclose-able AsyncGenerator from Template.generate_async
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Apr 7, 2024
1 parent 3fd91e4 commit 5f62d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jinja2/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ async def to_list() -> t.List[str]:

async def generate_async(
self, *args: t.Any, **kwargs: t.Any
) -> t.AsyncIterator[str]:
) -> t.AsyncGenerator[str, object]:
"""An async version of :meth:`generate`. Works very similarly but
returns an async iterator instead.
"""
Expand Down

0 comments on commit 5f62d30

Please sign in to comment.