Open zealws opened 6 years ago
Feel like submitting a pull request? You'd need to use the old typing style (e.g. in comments) but it shouldn't be too difficult.
@Tinche Python has supported function annotations since https://www.python.org/dev/peps/pep-3107/
As long as the tests pass on our current platforms, I'll merge it in :)
Mitigations addressed in the Debian bug report:
Hm looks like someone wrote stubs for us?
pip install types-aiofiles
Would this be enough to close this issue?
It would be more convenient if you merged them in and added a py.typed
Yes, that is enough.
types-aiofiles is a nice first step but rather incomplete
bump
It'd be really nice to be able to use mypy against files that include aiofiles, but that's not possible now since aiofiles isn't typed.
A simple example shows that
mypy --strict
doesn't allow use ofaiofiles.open
:Here's the code: