```python import asyncio from pathlib import Path import aiofiles FILENAME = Path.home() / ".zshrc" async def main() -> None: async with aiofiles.open(FILENAME, "r") as input_fd: async for line in input_fd: print(line) if __name__ == '__main__': asyncio.run(main()) ``` ``` scratch.py:10: error: "Coroutine[Any, Any, Iterator[str]]" has no attribute "__anext__" Found 1 error in 1 file (checked 1 source file) ``` Originally reported at https://github.com/Tinche/aiofiles/issues/105
Activity
JelleZijlstra commentedon Jul 9, 2021
I think #5724 fixed this, can you verify?
Akuli commentedon Jul 9, 2021
Still happens:
Fix aiofiles.base.AsyncBase.__iter__
Fix aiofiles.base.AsyncBase.__iter__ (#5750)