Title: TextIO/BinaryIO: Mismatch between documentation and implementation · Issue #518 · python/typing · GitHub
Open Graph Title: TextIO/BinaryIO: Mismatch between documentation and implementation · Issue #518 · python/typing
X Title: TextIO/BinaryIO: Mismatch between documentation and implementation · Issue #518 · python/typing
Description: The typing documentation for 3.6.4rc1 at states: This (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 alias...
Open Graph Description: The typing documentation for 3.6.4rc1 at states: This (typing.io) defines the generic type IO[AnyStr] and aliases TextIO and BinaryIO for respectively IO[str] and IO[bytes]. In the current implemen...
X Description: The typing documentation for 3.6.4rc1 at states: This (typing.io) defines the generic type IO[AnyStr] and aliases TextIO and BinaryIO for respectively IO[str] and IO[bytes]. In the current implemen...
Opengraph URL: https://github.com/python/typing/issues/518
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TextIO/BinaryIO: Mismatch between documentation and implementation","articleBody":"The [typing documentation](https://docs.python.org/3/library/typing.html) for 3.6.4rc1 at states:\r\n\r\n\u003e This (`typing.io`) defines the generic type `IO[AnyStr]` and aliases `TextIO` and `BinaryIO` for respectively `IO[str]` and `IO[bytes]`.\r\n\r\nIn the current implementation `TextIO` and `BinaryIO` are not aliases, but instead derived from `IO`. I am not sure whether this is a documentation or implementation problem, but the current implementation causes problems, since values of type `IO[...]`, and especially `IO[Any]` can not be assigned where `TextIO` or `BinaryIO` is expected.\r\n\r\nSee python/typeshed#1780 for a real-world example.\r\n","author":{"url":"https://github.com/srittau","@type":"Person","name":"srittau"},"datePublished":"2017-12-11T23:41:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/518/typing/issues/518"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8886c854-8a1b-f2f2-4690-c0114ca6fa35 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE7A:3073D:B2EC2C:FC00C8:6A4CA16D |
| html-safe-nonce | 5fa91695177b93afb4e8160a6b9ea6a5bfcb50738a83e8094c98a79cae04cb8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTdBOjMwNzNEOkIyRUMyQzpGQzAwQzg6NkE0Q0ExNkQiLCJ2aXNpdG9yX2lkIjoiMTc3MTU5MDUzNDM5OTA0MTkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55498049dbb9f8ff8c934595e8fee87a561d69e1872680c60b8080d5c746a1a4 |
| hovercard-subject-tag | issue:281206305 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typing/518/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a8691ceab1bb69a912e845c6aa383bf2958bcc239ef81f5b77b00b7353ab87c/python/typing/issues/518 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a8691ceab1bb69a912e845c6aa383bf2958bcc239ef81f5b77b00b7353ab87c/python/typing/issues/518 |
| og:image:alt | The typing documentation for 3.6.4rc1 at states: This (typing.io) defines the generic type IO[AnyStr] and aliases TextIO and BinaryIO for respectively IO[str] and IO[bytes]. In the current implemen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | srittau |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typing git https://github.com/python/typing.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 24604008 |
| octolytics-dimension-repository_nwo | python/typing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24604008 |
| octolytics-dimension-repository_network_root_nwo | python/typing |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width