Skip to content

Reason through Future, Generator, Coroutine, Awaitable #1140

Closed

Description

@gvanrossum

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.

Activity

  1. added this to the milestone on Mar 1, 2016
  2. gvanrossum commented on Apr 29, 2016

    @gvanrossum
    MemberAuthor

    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.

  3. gvanrossum commented on Apr 29, 2016

    @gvanrossum
    MemberAuthor

    Closing in favor of #1453.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions