Title: BytesIO should inherit BufferedIOBase · Issue #4075 · python/typeshed · GitHub
Open Graph Title: BytesIO should inherit BufferedIOBase · Issue #4075 · python/typeshed
X Title: BytesIO should inherit BufferedIOBase · Issue #4075 · python/typeshed
Description: I noticed this because mypy isn't letting me pass BytesIO to a dataclass field typed BufferedIOBase. There is a TODO here: typeshed/stdlib/3/io.pyi Line 80 in 00a2763 # TODO should extend from BufferedIOBase , but I didn't find an issue ...
Open Graph Description: I noticed this because mypy isn't letting me pass BytesIO to a dataclass field typed BufferedIOBase. There is a TODO here: typeshed/stdlib/3/io.pyi Line 80 in 00a2763 # TODO should extend from Buff...
X Description: I noticed this because mypy isn't letting me pass BytesIO to a dataclass field typed BufferedIOBase. There is a TODO here: typeshed/stdlib/3/io.pyi Line 80 in 00a2763 # TODO should extend from ...
Opengraph URL: https://github.com/python/typeshed/issues/4075
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BytesIO should inherit BufferedIOBase","articleBody":"I noticed this because `mypy` isn't letting me pass `BytesIO` to a dataclass field typed `BufferedIOBase`. There is a TODO here: https://github.com/python/typeshed/blob/00a27634b1f70943ed95ea2817f26cd16161fdef/stdlib/3/io.pyi#L80, but I didn't find an issue with the rationale for it not to inherit as of now.\r\n\r\nI can make a Pull Request if introducing the inheritance (and removing redundant attributes/methods) is all that is needed, but I am very unsure if that's it, so I decided to open this issue before anything else.\r\n","author":{"url":"https://github.com/tarcisioe","@type":"Person","name":"tarcisioe"},"datePublished":"2020-05-25T03:25:41Z","url":"https://github.com/python/typeshed/issues/4075"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:b7b64e53-747d-d8b0-6362-a21bfebad786 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1AE:1A3D7F:2F8C980:3ECD72B:6B00225D |
| html-safe-nonce | 5b24cc8e04e1af4b8f708702b51de7cdd51bbdbb22ab812c132f32383f745c7d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUFFOjFBM0Q3RjoyRjhDOTgwOjNFQ0Q3MkI6NkIwMDIyNUQiLCJ2aXNpdG9yX2lkIjoiNTQzNTc2NjM0NzQwMzM3MTEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 285f1393e36d08b6b955457c7611f50facb5e4a56a97904ccad1113be6fe4b47 |
| hovercard-subject-tag | issue:624020437 |
| 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/typeshed/4075/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff8e9c9f38fb8abd1cee1e55c6f3136c71b1d7183aa2626539a9845646703ad2/python/typeshed/issues/4075 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff8e9c9f38fb8abd1cee1e55c6f3136c71b1d7183aa2626539a9845646703ad2/python/typeshed/issues/4075 |
| og:image:alt | I noticed this because mypy isn't letting me pass BytesIO to a dataclass field typed BufferedIOBase. There is a TODO here: typeshed/stdlib/3/io.pyi Line 80 in 00a2763 # TODO should extend from Buff... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tarcisioe |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width