Title: mypy accepts tuple[int] etc. · Issue #2428 · python/mypy · GitHub
Open Graph Title: mypy accepts tuple[int] etc. · Issue #2428 · python/mypy
X Title: mypy accepts tuple[int] etc. · Issue #2428 · python/mypy
Description: mypy currently accepts tuple[int], list[int], dict[int, str] while all of those fail at runtime. I think those should be flagged as errors.
Open Graph Description: mypy currently accepts tuple[int], list[int], dict[int, str] while all of those fail at runtime. I think those should be flagged as errors.
X Description: mypy currently accepts tuple[int], list[int], dict[int, str] while all of those fail at runtime. I think those should be flagged as errors.
Opengraph URL: https://github.com/python/mypy/issues/2428
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy accepts tuple[int] etc.","articleBody":"mypy currently accepts\r\n```python\r\ntuple[int], list[int], dict[int, str]\r\n```\r\nwhile all of those fail at runtime. I think those should be flagged as errors.","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2016-11-10T14:04:36Z","url":"https://github.com/python/mypy/issues/2428"}
| 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:dc086a92-f59c-1704-41a6-6a05f637702a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8364:6A941:1141ED9:16936DF:6B0007FB |
| html-safe-nonce | 4bdf3ff5c297418fa59e51b7d9ef5bd0ddff54c9c0928d9538ec4d2d6eef5488 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzY0OjZBOTQxOjExNDFFRDk6MTY5MzZERjo2QjAwMDdGQiIsInZpc2l0b3JfaWQiOiIzMjg1MTc0MjY0MDY3NTI0NjAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 62bcf5106184b6f4d2a89f21143cf4e7dda9848c1ec0cc4f970e1f4515056f93 |
| hovercard-subject-tag | issue:188516408 |
| 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/2428/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af44145badbf42d61fca664eada4069a16e1e15362359fea4eb96b27bd1e9ea1/python/mypy/issues/2428 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af44145badbf42d61fca664eada4069a16e1e15362359fea4eb96b27bd1e9ea1/python/mypy/issues/2428 |
| og:image:alt | mypy currently accepts tuple[int], list[int], dict[int, str] while all of those fail at runtime. I think those should be flagged as errors. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilevkivskyi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width