Title: Move code to handle Tuple and TypedDict `__getitem__` to plugins · Issue #6138 · python/mypy · GitHub
Open Graph Title: Move code to handle Tuple and TypedDict `__getitem__` to plugins · Issue #6138 · python/mypy
X Title: Move code to handle Tuple and TypedDict `__getitem__` to plugins · Issue #6138 · python/mypy
Description: Currently, we handle calls to both Tuple and TypedDict's __getitem__ code inside checkexpr. We should consider turning some or all of this code into a plugin. I think it's somewhat debatable how useful this refactor would be for Tuple's ...
Open Graph Description: Currently, we handle calls to both Tuple and TypedDict's __getitem__ code inside checkexpr. We should consider turning some or all of this code into a plugin. I think it's somewhat debatable how us...
X Description: Currently, we handle calls to both Tuple and TypedDict's __getitem__ code inside checkexpr. We should consider turning some or all of this code into a plugin. I think it's somewhat debatabl...
Opengraph URL: https://github.com/python/mypy/issues/6138
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Move code to handle Tuple and TypedDict `__getitem__` to plugins","articleBody":"Currently, we handle calls to both Tuple and TypedDict's `__getitem__` code [inside checkexpr](https://github.com/python/mypy/blob/master/mypy/checkexpr.py#L2341). We should consider turning some or all of this code into a plugin. \r\n\r\nI think it's somewhat debatable how useful this refactor would be for Tuple's `__getitem__`, but it would at least make the way we handle TypedDicts more consistent: we currently handle all other TypedDict methods inside of a plugin.\r\n\r\nAlso see https://github.com/python/mypy/pull/6124#discussion_r245185240 for context.","author":{"url":"https://github.com/Michael0x2a","@type":"Person","name":"Michael0x2a"},"datePublished":"2019-01-04T05:30:40Z","url":"https://github.com/python/mypy/issues/6138"}
| 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:fc202d49-08ae-ca66-0348-682344604fca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D27A:137B3:153A3C4:1BEDB58:6B00191F |
| html-safe-nonce | f224a792f06af35456aecfe5cb1fa2b0f91ef896c81da48f05ccec5526dc9de9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjdBOjEzN0IzOjE1M0EzQzQ6MUJFREI1ODo2QjAwMTkxRiIsInZpc2l0b3JfaWQiOiI0NDM5NTgxNzg4NzA0MDg2MzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0f217d67e0c51db3d2e82b57dafcda02ba94a92665cad88ca88349339ff9d9a3 |
| hovercard-subject-tag | issue:395813399 |
| 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/6138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7fe5cc83e1fa7c3074da6f9644fe534f6c9c79c957b51eaeb351a12e48fd2a6/python/mypy/issues/6138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7fe5cc83e1fa7c3074da6f9644fe534f6c9c79c957b51eaeb351a12e48fd2a6/python/mypy/issues/6138 |
| og:image:alt | Currently, we handle calls to both Tuple and TypedDict's __getitem__ code inside checkexpr. We should consider turning some or all of this code into a plugin. I think it's somewhat debatable how us... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Michael0x2a |
| 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