Title: Piping the results of mypy to head can result in a broken pipe error · Issue #2893 · python/mypy · GitHub
Open Graph Title: Piping the results of mypy to head can result in a broken pipe error · Issue #2893 · python/mypy
X Title: Piping the results of mypy to head can result in a broken pipe error · Issue #2893 · python/mypy
Description: I have been working on getting mypy to return some meaningful results with a large codebase, and this requires writing a very large number of stubs. As a result, I see hundreds of lines of errors for very small files. To wade through all...
Open Graph Description: I have been working on getting mypy to return some meaningful results with a large codebase, and this requires writing a very large number of stubs. As a result, I see hundreds of lines of errors f...
X Description: I have been working on getting mypy to return some meaningful results with a large codebase, and this requires writing a very large number of stubs. As a result, I see hundreds of lines of errors f...
Opengraph URL: https://github.com/python/mypy/issues/2893
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Piping the results of mypy to head can result in a broken pipe error","articleBody":"I have been working on getting mypy to return some meaningful results with a large codebase, and this requires writing a very large number of stubs. As a result, I see hundreds of lines of errors for very small files. To wade through all of this, I have been piping the results to `head` and gradually fixing various issues.\r\n\r\nEvery now and then, I have noticed that piping the results of the `mypy` output to `head` results in a broken pipe error.\r\n\r\nSometimes I see this error:\r\n\r\n```\r\nException ignored in: \u003c_io.TextIOWrapper name='\u003cstdout>' mode='w' encoding='UTF-8'>\r\nBrokenPipeError: [Errno 32] Broken pipe\r\n```\r\n\r\nAt other times, I see this:\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/home/.../bin/mypy\", line 6, in \u003cmodule>\r\n main(__file__)\r\n File \"/home/.../lib/python3.5/site-packages/mypy/main.py\", line 53, in main\r\n f.write(m + '\\n')\r\nBrokenPipeError: [Errno 32] Broken pipe\r\n```\r\n\r\nSometimes, I don't see any errors.\r\n\r\nI can't provide a link to the project, due to copyright reasons, but you should be able to repeat this bug with any file which produces sufficiently long output if the results are fed to `head`, say with `mypy some/file.py | head -n 10`, etc.","author":{"url":"https://github.com/w0rp","@type":"Person","name":"w0rp"},"datePublished":"2017-02-22T14:05:03Z","url":"https://github.com/python/mypy/issues/2893"}
| 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:4ff6d35e-edcd-6508-7a98-a51ce41ca6f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D920:2F2EB9:34A00FF:46089B5:6B00458B |
| html-safe-nonce | b81735a3fc4fe3fa4485ca2e2413ef923bb26f985b3815fb2e29ba162bd56d43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTIwOjJGMkVCOTozNEEwMEZGOjQ2MDg5QjU6NkIwMDQ1OEIiLCJ2aXNpdG9yX2lkIjoiNzg2NjI2OTgxNDk5MjU4MjUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0e8f8e796d214308efe03f0a7bf688a1ac3d3b0e9725d756bd64331cac675ca9 |
| hovercard-subject-tag | issue:209463199 |
| 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/2893/issue_layout |
| twitter:image | https://opengraph.githubassets.com/df20b54d92db1c29348e56b87c2c0cf7c11b259e83672eb1ed52f2e179ae6ad6/python/mypy/issues/2893 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df20b54d92db1c29348e56b87c2c0cf7c11b259e83672eb1ed52f2e179ae6ad6/python/mypy/issues/2893 |
| og:image:alt | I have been working on getting mypy to return some meaningful results with a large codebase, and this requires writing a very large number of stubs. As a result, I see hundreds of lines of errors f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | w0rp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width