Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix when yield from was made of an AnyType (python#868, the generic e…
…xample that @nierob reported in python#836) Now don't crash in: ``` import asyncio @asyncio.coroutine def example_coro(): q = asyncio.Queue() msg = yield from q.get() if __name__ == '__main__': loop = asyncio.get_event_loop() loop.run_until_complete(example_coro()) ``` But that example is because don't infer asyncio.Queue type properly as is appointed in python#836, so q is AnyType and ``` import asyncio import typing @asyncio.coroutine def foo(a): b = yield from a return b ```
- Loading branch information