extmod/uasyncio: Add StreamReader/StreamWriter as aliases of Stream cls.

To be compatible with CPython.  Fixes issue #5847.
This commit is contained in:
Damien George
2020-04-02 00:51:00 +11:00
parent aca19c25d2
commit f97b5395ed
3 changed files with 9 additions and 1 deletions

View File

@@ -177,7 +177,8 @@ TCP stream connections
.. class:: Stream()
This represents a TCP stream connection. To minimise code this class implements
both a reader and a writer.
both a reader and a writer, and both ``StreamReader`` and ``StreamWriter`` alias to
this class.
.. method:: Stream.get_extra_info(v)