Skip to content

Conversation

@potykion
Copy link
Contributor

Stubs for Environment.enable_async parameter, Template.render_async and Template.generate_async methods.

Reference:
http://jinja.pocoo.org/docs/2.10/api/#async-support

def debug_info(self): ...

if sys.version_info >= (3, 6):
from typing import Awaitable, AsyncIterator
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you put these imports in a separate if sys.version_info block at the top? An import statement within a class seems, um, unusual.

@JelleZijlstra
Copy link
Member

Looks good, just had one comment.

@potykion
Copy link
Contributor Author

Done.

@JelleZijlstra JelleZijlstra merged commit f35c5d1 into python:master Jun 28, 2018
yedpodtrzitko pushed a commit to yedpodtrzitko/typeshed that referenced this pull request Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants