Title: AssertionError when analyzing recursive TypedDict · Issue #3674 · python/mypy · GitHub
Open Graph Title: AssertionError when analyzing recursive TypedDict · Issue #3674 · python/mypy
X Title: AssertionError when analyzing recursive TypedDict · Issue #3674 · python/mypy
Description: $ cat n.py from mypy_extensions import TypedDict class MovieBase(TypedDict): name: str year: int class Movie(MovieBase): director: 'Movie' $ mypy n.py Traceback (most recent call last): File "/usr/local/bin/mypy", line 11, in
Open Graph Description: $ cat n.py from mypy_extensions import TypedDict class MovieBase(TypedDict): name: str year: int class Movie(MovieBase): director: 'Movie' $ mypy n.py Traceback (most recent call last): File "/usr/...
X Description: $ cat n.py from mypy_extensions import TypedDict class MovieBase(TypedDict): name: str year: int class Movie(MovieBase): director: 'Movie' $ mypy n.py Traceback (most recent call last): Fil...
Opengraph URL: https://github.com/python/mypy/issues/3674
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AssertionError when analyzing recursive TypedDict","articleBody":"```\r\n$ cat n.py \r\nfrom mypy_extensions import TypedDict\r\n\r\nclass MovieBase(TypedDict):\r\n name: str\r\n year: int\r\n\r\nclass Movie(MovieBase):\r\n director: 'Movie'\r\n$ mypy n.py \r\nTraceback (most recent call last):\r\n File \"/usr/local/bin/mypy\", line 11, in \u003cmodule>\r\n load_entry_point('mypy===0.520-dev-6c61c66641d46682e24341e624d4a8fd6ac32e11', 'console_scripts', 'mypy')()\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/__main__.py\", line 7, in console_entry\r\n main(None)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/main.py\", line 50, in main\r\n res = type_check_only(sources, bin_dir, options)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/main.py\", line 97, in type_check_only\r\n options=options)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/build.py\", line 196, in build\r\n graph = dispatch(sources, manager)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/build.py\", line 1769, in dispatch\r\n process_graph(graph, manager)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/build.py\", line 2012, in process_graph\r\n process_stale_scc(graph, scc, manager)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/build.py\", line 2113, in process_stale_scc\r\n graph[id].semantic_analysis_apply_patches()\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/build.py\", line 1675, in semantic_analysis_apply_patches\r\n patch_func()\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/semanal.py\", line 2468, in patch\r\n fallback.args[1] = join.join_type_list(types)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/join.py\", line 392, in join_type_list\r\n joined = join_types(joined, t)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/join.py\", line 88, in join_types\r\n return t.accept(TypeJoinVisitor(s))\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/types.py\", line 427, in accept\r\n return visitor.visit_instance(self)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/join.py\", line 141, in visit_instance\r\n return join_instances(t, self.s)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/join.py\", line 299, in join_instances\r\n return join_instances_via_supertype(s, t)\r\n File \"/usr/local/lib/python3.6/site-packages/mypy/join.py\", line 318, in join_instances_via_supertype\r\n assert best is not None\r\nAssertionError\r\n```","author":{"url":"https://github.com/ilinum","@type":"Person","name":"ilinum"},"datePublished":"2017-07-07T18:20:13Z","url":"https://github.com/python/mypy/issues/3674"}
| 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:e7255ced-2a0f-2fb3-c461-015720ed2596 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D256:120A77:27D6060:36658E6:6B00476A |
| html-safe-nonce | 86f9f21c2c5b85d508182b17fbe22a48fb4bcf5710cec1f8595316f18311d6fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjU2OjEyMEE3NzoyN0Q2MDYwOjM2NjU4RTY6NkIwMDQ3NkEiLCJ2aXNpdG9yX2lkIjoiODkyNjU2NzYzMjE3MDE0MTU0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 08da463198dcd1f16648c075da2994eb9f61d4b1c1f6ebdfbd3441b01a6ca893 |
| hovercard-subject-tag | issue:241341827 |
| 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/3674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f2cb37081fb978ea40db7b8a303019f2e16a731b43e649fb089309696e0d2fa/python/mypy/issues/3674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f2cb37081fb978ea40db7b8a303019f2e16a731b43e649fb089309696e0d2fa/python/mypy/issues/3674 |
| og:image:alt | $ cat n.py from mypy_extensions import TypedDict class MovieBase(TypedDict): name: str year: int class Movie(MovieBase): director: 'Movie' $ mypy n.py Traceback (most recent call last): File "/usr/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilinum |
| 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