Closed fox91 closed 3 years ago
Running mypy against this code:
mypy
import aiofiles # ... async with aiofiles.open('filename', 'wb') as file: # ...
returns these errors:
error: "AsyncBufferedIOBase" has no attribute "__aenter__" error: "AsyncBufferedIOBase" has no attribute "__aexit__"
I'm using:
Python 3.8.6 aiofiles 0.6.0 mypy 0.790
Upgrading to v0.812 should resolve the issue
See: https://github.com/python/mypy/issues/9739
Yes, I confirm. Thanks
Running
mypy
against this code:returns these errors:
I'm using: