AsyncTextIO, AsyncBinaryIO, AsyncIO[AnyStr]: exactly like the non-async versions in typing, except with the relevant methods asyncified
AsyncFileIO, AsyncBufferedFileIO, AsyncTextFileIO: match the types returned by trio.open_file()
The updated logic here also allows inferring the return type of open_file(), wrap_file(), and Path.open() using literal types rather than a plugin, which fixes #28 and provides a better experience for non-mypy users.
We now have:
AsyncTextIO
,AsyncBinaryIO
,AsyncIO[AnyStr]
: exactly like the non-async versions intyping
, except with the relevant methods asyncifiedAsyncFileIO
,AsyncBufferedFileIO
,AsyncTextFileIO
: match the types returned bytrio.open_file()
The updated logic here also allows inferring the return type of open_file(), wrap_file(), and Path.open() using literal types rather than a plugin, which fixes #28 and provides a better experience for non-mypy users.