Title: Nicer output · Issue #3439 · python/mypy · GitHub
Open Graph Title: Nicer output · Issue #3439 · python/mypy
X Title: Nicer output · Issue #3439 · python/mypy
Description: I have mentioned this on gitter, but I think it might be a good idea to open an issue to track this. Current mypy output is a bit harsh. Compare (I know these are different kind of errors, but still) (mypy-dev) ~/src/mypy [master] λ cat ...
Open Graph Description: I have mentioned this on gitter, but I think it might be a good idea to open an issue to track this. Current mypy output is a bit harsh. Compare (I know these are different kind of errors, but stil...
X Description: I have mentioned this on gitter, but I think it might be a good idea to open an issue to track this. Current mypy output is a bit harsh. Compare (I know these are different kind of errors, but stil...
Opengraph URL: https://github.com/python/mypy/issues/3439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nicer output","articleBody":"I have mentioned this on gitter, but I think it might be a good idea to open an issue to track this. Current mypy output is a bit harsh. Compare (I know these are different kind of errors, but still)\r\n\r\n```python\r\n(mypy-dev) ~/src/mypy [master] λ cat x.py \r\nfrom typing import Tuple\r\nv: Tuple[int] = list(10)\r\n(mypy-dev) ~/src/mypy [master] λ mypy x.py \r\nx.py:2: error: No overload variant of \"list\" matches argument types [builtins.int]\r\n```\r\n\r\nto\r\n\r\n```rust\r\n~/src/mypy [master] λ cat x.rs \r\nfn main() {\r\n let v: &[usize] = Vec::with_capacity(\"10\");\r\n}\r\n~/src/mypy [master] λ rustc x.rs \r\nerror[E0308]: mismatched types\r\n --> x.rs:2:42\r\n |\r\n2 | let v: &[usize] = Vec::with_capacity(\"10\");\r\n | ^^^^ expected usize, found reference\r\n |\r\n = note: expected type `usize`\r\n found type `&'static str`\r\n = help: here are some functions which might fulfill your needs:\r\n - .len()\r\n\r\nerror[E0308]: mismatched types\r\n --> x.rs:2:23\r\n |\r\n2 | let v: &[usize] = Vec::with_capacity(\"10\");\r\n | ^^^^^^^^^^^^^^^^^^^^^^^^ expected &[usize], found struct `std::vec::Vec`\r\n |\r\n = note: expected type `&[usize]`\r\n found type `std::vec::Vec\u003c_>`\r\n = help: here are some functions which might fulfill your needs:\r\n - .as_slice()\r\n\r\nerror: aborting due to 2 previous errors\r\n```\r\n\r\nRustc output is specified [here](https://github.com/rust-lang/rfcs/blob/master/text/1644-default-and-expanded-rustc-errors.md).\r\n\r\nI don't have any ideas other than that we could start adding at least come colors. I'm pretty sure that we should keep the old format as an option, because it is useful for various tools like [neomake](https://github.com/neomake/neomake), it drives current test-cases-as-data and simply some people might prefer that.","author":{"url":"https://github.com/miedzinski","@type":"Person","name":"miedzinski"},"datePublished":"2017-05-24T12:48:08Z","url":"https://github.com/python/mypy/issues/3439"}
| 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:d2bb5190-72cc-1136-b561-fa91a661c9d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C85E:3A13A0:240F176:30F01A0:6B003052 |
| html-safe-nonce | faf984010859b0c880aef623042d9412f51fc1f62b9668a299e07540d19de3e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODVFOjNBMTNBMDoyNDBGMTc2OjMwRjAxQTA6NkIwMDMwNTIiLCJ2aXNpdG9yX2lkIjoiNzE4NjgyNjc0NzM2NTU2ODU5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3878a435819251e8179080660a6f6a09b5bdfe9af24e1941c39ecb0cff7e959d |
| hovercard-subject-tag | issue:231028228 |
| 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/3439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e52ba5bc4ca0d23c6f8142b5c88d6d92fd4a83757ead26d5e97c7dcbf599b6b/python/mypy/issues/3439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e52ba5bc4ca0d23c6f8142b5c88d6d92fd4a83757ead26d5e97c7dcbf599b6b/python/mypy/issues/3439 |
| og:image:alt | I have mentioned this on gitter, but I think it might be a good idea to open an issue to track this. Current mypy output is a bit harsh. Compare (I know these are different kind of errors, but stil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miedzinski |
| 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