Title: Synthetic types are not processed in third pass · Issue #3308 · python/mypy · GitHub
Open Graph Title: Synthetic types are not processed in third pass · Issue #3308 · python/mypy
X Title: Synthetic types are not processed in third pass · Issue #3308 · python/mypy
Description: While working on #3305 I discovered that "synthetic" types are not always properly processed in third pass (also there can be additional problems with them in fixup.py). This leads to crashes like these: from typing import List, NewType,...
Open Graph Description: While working on #3305 I discovered that "synthetic" types are not always properly processed in third pass (also there can be additional problems with them in fixup.py). This leads to crashes like ...
X Description: While working on #3305 I discovered that "synthetic" types are not always properly processed in third pass (also there can be additional problems with them in fixup.py). This leads to cra...
Opengraph URL: https://github.com/python/mypy/issues/3308
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Synthetic types are not processed in third pass","articleBody":"While working on #3305 I discovered that \"synthetic\" types are not always properly processed in third pass (also there can be additional problems with them in ``fixup.py``). This leads to crashes like these:\r\n```python\r\nfrom typing import List, NewType, NamedTuple\r\nfrom mypy_extensions import TypedDict\r\n\r\nNT = NewType('NT', List[int, str])\r\n\r\nclass NM(NamedTuple):\r\n x: List[int, str]\r\n\r\nclass TD(TypedDict):\r\n x: List[int, str]\r\n\r\n# crashers: any of these crashes with \"IndexError: list index out of range\"\r\n\r\nTD({'x': []})\r\nNM(x=[])\r\nNT([])\r\n```","author":{"url":"https://github.com/ilevkivskyi","@type":"Person","name":"ilevkivskyi"},"datePublished":"2017-05-03T14:59:51Z","url":"https://github.com/python/mypy/issues/3308"}
| 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:91b413a1-ab24-603d-77f0-673ab112085e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB1E:1DD784:505B5F:6BC6F5:6B002FC6 |
| html-safe-nonce | fd4e025589c27052d1da392d891ff324cc1d9c54a975123a30bf843a918bf1c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjFFOjFERDc4NDo1MDVCNUY6NkJDNkY1OjZCMDAyRkM2IiwidmlzaXRvcl9pZCI6Ijg3NzY2ODgyNjI5NzU1OTg1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e5885dc3c3deb05d5852645b91da307d9c024106c8e40edad00243fbd1d7dfee |
| hovercard-subject-tag | issue:226015920 |
| 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/3308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1418748177664603b65fa3bb81df7e93ae614fb3f471282431a8ff75be60bd00/python/mypy/issues/3308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1418748177664603b65fa3bb81df7e93ae614fb3f471282431a8ff75be60bd00/python/mypy/issues/3308 |
| og:image:alt | While working on #3305 I discovered that "synthetic" types are not always properly processed in third pass (also there can be additional problems with them in fixup.py). This leads to crashes like ... |
| 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 | 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