-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
asyncio.create_task hints say you can pass any Awaitable, but you cannot pass asyncio.Tasks #6770
Comments
In the absence of a @alkasm, I don't know much about asyncio -- is a |
From my reading of the source code, it looks like So, from my reading of the source code, it looks like it is probably not true that a |
Yeah, it seems the type is simply too permissive---I believe the input type should be a Coroutine, not any Awaitable. In addition to the
|
As @Akuli points out here, I misread the source code — |
Thanks so much for digging into and solving this rather nontrivial bug! |
The following program passes mypy type checking, but fails at runtime:
The text was updated successfully, but these errors were encountered: