This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author srittau
Recipients docs@python, srittau
Date 2017-12-12.00:34:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513038875.1.0.213398074469.issue32284@psf.upfronthosting.co.za>
In-reply-to
Content
See https://github.com/python/typing/issues/518 for context.

The typing documentation for 3.6.4rc1 states:

> typing.io ... defines the generic type IO[AnyStr] and aliases TextIO and BinaryIO for respectively IO[str] and IO[bytes].

In the current implementation TextIO and BinaryIO are not aliases, but instead derived from IO. This means that values of type IO[...], and especially IO[Any] can not be assigned where TextIO or BinaryIO is expected.
History
Date User Action Args
2017-12-12 00:34:35srittausetrecipients: + srittau, docs@python
2017-12-12 00:34:35srittausetmessageid: <1513038875.1.0.213398074469.issue32284@psf.upfronthosting.co.za>
2017-12-12 00:34:35srittaulinkissue32284 messages
2017-12-12 00:34:34srittaucreate