-
-
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
Error on call to asyncio.gather() with arguments of different types #675
Comments
@sixolet: Here's another example for variadic type variables. @JelleZijlstra: Since we don't have variadic type variables yet, I think the only way to fix the stub for now is to use Do you have a preference? |
I did solve my issue for now with |
OK, I'll use Any. |
In mypy, the following code:
produces the error:
(regardless of whether the type error on the last line is present)
This is on the latest release of mypy with the git HEAD version of typeshed (the released mypy has an old version of typeshed that doesn't support gather() at all).
I think this is a typeshed issue, not a mypy issue, but I'm not sure how the type of this function should be expressed instead. The current annotation for gather() is:
The text was updated successfully, but these errors were encountered: