-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[1.4] Regression with AsyncGenerator #15489
Comments
Source code is just annotated with |
Hmmm I wonder if related to #14150 |
Yeah, I think so, cc @JukkaL (btw, thanks again for the change, it's a huge perf win for various codebases at work)
Reminder to self: add |
Okay, I have the fix |
If you'd like some other aio-libs candidates, I'd suggest any of aiohttp-security, aiohttp-admin, aiohttp-jinja2, aiohttp-session and multidict. |
Fixed and released in mypy 1.4.1 |
Bug Report
I can't seem to find a minimal reproducer, but whenever using watchfiles.awatch(), mypy produces the error:
error: "Coroutine[Any, Any, AsyncGenerator[set[tuple[Change, str]], None]]" has no attribute "__aiter__" (not async iterable) [attr-defined]
As can be seen in the aiohttp-devtools repo:
https://github.com/aio-libs/aiohttp-devtools/actions/runs/5328161994/jobs/9652470528?pr=572
To Reproduce
Expected Behavior
No error, as in mypy<1.4.
Not sure what exactly triggers the error, as writing another async iterator function myself does not trigger it.
The text was updated successfully, but these errors were encountered: