Title: Return type "str" of "readline" incompatible with return type "bytes" in supertype "IOBase" [override] · Issue #9643 · python/mypy · GitHub
Open Graph Title: Return type "str" of "readline" incompatible with return type "bytes" in supertype "IOBase" [override] · Issue #9643 · python/mypy
X Title: Return type "str" of "readline" incompatible with return type "bytes" in supertype "IOBase" [override] · Issue #9643 · python/mypy
Description: Since python/typeshed#4145 (released with mypy 0.790) mypy fails with: import io class MyStringIO(io.StringIO): def readline(self, size=None) -> str: return super().readline(size) Return type "str" of "readline" incompatible with return ...
Open Graph Description: Since python/typeshed#4145 (released with mypy 0.790) mypy fails with: import io class MyStringIO(io.StringIO): def readline(self, size=None) -> str: return super().readline(size) Return type "str"...
X Description: Since python/typeshed#4145 (released with mypy 0.790) mypy fails with: import io class MyStringIO(io.StringIO): def readline(self, size=None) -> str: return super().readline(size) Return type &q...
Opengraph URL: https://github.com/python/mypy/issues/9643
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Return type \"str\" of \"readline\" incompatible with return type \"bytes\" in supertype \"IOBase\" [override]","articleBody":"Since https://github.com/python/typeshed/pull/4145 (released with mypy 0.790) mypy fails with:\r\n```python\r\nimport io\r\n\r\nclass MyStringIO(io.StringIO):\r\n def readline(self, size=None) -> str:\r\n return super().readline(size)\r\n```\r\n\r\n> Return type \"str\" of \"readline\" incompatible with return type \"bytes\" in supertype \"IOBase\" [override]\r\n\r\nAccording to https://github.com/python/typeshed/pull/4145#issuecomment-639543492 this is likely a bug in mypy.\r\n\r\n(mypy 0.800+dev.f220ce50725ed7f117832b9f03aed4d1a9508e00 (current master))","author":{"url":"https://github.com/blueyed","@type":"Person","name":"blueyed"},"datePublished":"2020-10-26T16:51:47Z","url":"https://github.com/python/mypy/issues/9643"}
| 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:cf291f70-3aa7-dbce-d5d6-a77ae880994a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6AE:B5253:1572C25:1C546F2:6B001ADC |
| html-safe-nonce | 66b746c990413b657eb923eee9ada23079ccd0e53560aafe7bed73d09860570e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkFFOkI1MjUzOjE1NzJDMjU6MUM1NDZGMjo2QjAwMUFEQyIsInZpc2l0b3JfaWQiOiI3NTg5MzUwODU5MDA4MzgzNzA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 20a4805250e3e85befd4da56e8a3ee6f4c622d5445b9059cc02f6621a4509f3c |
| hovercard-subject-tag | issue:729734916 |
| 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/mypy/9643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ffb6ee6c2a488dfada0a322bb401d2c95d2fcfae7a472530104e9daf6b1167f9/python/mypy/issues/9643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ffb6ee6c2a488dfada0a322bb401d2c95d2fcfae7a472530104e9daf6b1167f9/python/mypy/issues/9643 |
| og:image:alt | Since python/typeshed#4145 (released with mypy 0.790) mypy fails with: import io class MyStringIO(io.StringIO): def readline(self, size=None) -> str: return super().readline(size) Return type "str"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | blueyed |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 70121d4e855ee0bb7b75cf15d061d91f8863c0f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width