Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason through Future, Generator, Coroutine, Awaitable #1140

Closed
gvanrossum opened this issue Jan 19, 2016 · 2 comments
Closed

Reason through Future, Generator, Coroutine, Awaitable #1140

gvanrossum opened this issue Jan 19, 2016 · 2 comments

Comments

@gvanrossum
Copy link
Member

gvanrossum commented Jan 19, 2016

This came up in #1137 (comment). We should eventually know exactly how to declare the type of various coroutine-like things, whether they use @asyncio.coroutine, async def, or merely yield from.

@ddfisher ddfisher added this to the Future milestone Mar 1, 2016
@gvanrossum
Copy link
Member Author

I think Future and Coroutine are owned by the asyncio stubs. The relationship and meaning of Generator and Iterator seems to have been sorted out. Support for yield from appears solid. We also have Awaitable, AsyncIterable and AsyncIterator in typing.py.

What remains IMO is support for async def and await (and async for, async with). For the return type of async def, see the discussion in the typing tracker.

@gvanrossum
Copy link
Member Author

Closing in favor of #1453.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants