-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Exception while typechecking python3.4 program using asyncio.Queue.get #868
Labels
bug
mypy got something wrong
Comments
thomascellerier
changed the title
Exception while typechecking python3.4 program using asyncio
Exception while typechecking python3.4 program using asyncio.Queue.get
Sep 3, 2015
rockneurotiko
added a commit
to rockneurotiko/mypy
that referenced
this issue
Sep 10, 2015
…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 ```
msullivan
added a commit
that referenced
this issue
Aug 17, 2022
Also fix returning a value from inside a try block when the finally block does a yield. (Which happens when returning from an async with). Progress on mypyc/mypyc##868.
msullivan
added a commit
that referenced
this issue
Aug 18, 2022
Also fix returning a value from inside a try block when the finally block does a yield. (Which happens when returning from an async with). Progress on mypyc/mypyc##868.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the latest master from today
mypy 0.2.0-dev
.Here is a minimal program to reproduce:
The text was updated successfully, but these errors were encountered: