Title: [0.530] AssertionError: Internal error: Unresolved forward reference to UnboundType · Issue #4097 · python/mypy · GitHub
Open Graph Title: [0.530] AssertionError: Internal error: Unresolved forward reference to UnboundType · Issue #4097 · python/mypy
X Title: [0.530] AssertionError: Internal error: Unresolved forward reference to UnboundType · Issue #4097 · python/mypy
Description: Traceback (most recent call last): File "/Users/daenyth/Curata/cmp/.tox/mypy/bin/mypy", line 11, in
Open Graph Description: Traceback (most recent call last): File "/Users/daenyth/Curata/cmp/.tox/mypy/bin/mypy", line 11, in
X Description: Traceback (most recent call last): File "/Users/daenyth/Curata/cmp/.tox/mypy/bin/mypy", line 11, in <module> sys.exit(console_entry()) File "/Users/daenyth/Curata/cmp/.tox/mypy...
Opengraph URL: https://github.com/python/mypy/issues/4097
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[0.530] AssertionError: Internal error: Unresolved forward reference to UnboundType","articleBody":"```\r\nTraceback (most recent call last):\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/bin/mypy\", line 11, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/__main__.py\", line 7, in console_entry\r\n main(None)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/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 \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/main.py\", line 103, in type_check_only\r\n options=options)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 198, in build\r\n graph = dispatch(sources, manager)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 1841, in dispatch\r\n process_graph(graph, manager)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 2091, in process_graph\r\n process_stale_scc(graph, scc, manager)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 2203, in process_stale_scc\r\n graph[id].write_cache()\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 1822, in write_cache\r\n self.manager)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 1088, in write_cache\r\n data = tree.serialize()\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 238, in serialize\r\n 'names': self.names.serialize(self._fullname),\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 2432, in serialize\r\n data[key] = value.serialize(fullname, key)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 2371, in serialize\r\n data['node'] = self.node.serialize()\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 2194, in serialize\r\n 'names': self.names.serialize(self.fullname()),\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 2432, in serialize\r\n data[key] = value.serialize(fullname, key)\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 2371, in serialize\r\n data['node'] = self.node.serialize()\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/nodes.py\", line 533, in serialize\r\n 'type': None if self.type is None else self.type.serialize(),\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 857, in serialize\r\n 'arg_types': [t.serialize() for t in self.arg_types],\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 857, in \u003clistcomp>\r\n 'arg_types': [t.serialize() for t in self.arg_types],\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 496, in serialize\r\n data['args'] = [arg.serialize() for arg in self.args]\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 496, in \u003clistcomp>\r\n data['args'] = [arg.serialize() for arg in self.args]\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 994, in serialize\r\n 'items': [t.serialize() for t in self.items],\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 994, in \u003clistcomp>\r\n 'items': [t.serialize() for t in self.items],\r\n File \"/Users/daenyth/Curata/cmp/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 1410, in serialize\r\n assert False, \"Internal error: Unresolved forward reference to {}\".format(name)\r\nAssertionError: Internal error: Unresolved forward reference to UnboundType\r\n```\r\n\r\nI get this running on my codebase after updating to 0.530. It passes without error in 0.521. I'm not sure what's triggering it - if you can help me figure that out I can try to minimize the failure.","author":{"url":"https://github.com/Daenyth","@type":"Person","name":"Daenyth"},"datePublished":"2017-10-11T16:38:13Z","url":"https://github.com/python/mypy/issues/4097"}
| 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:256af718-f2ca-bb59-9b24-444ccc4f0538 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D7C:CEC0A:2931F1E:362169B:6B000C5D |
| html-safe-nonce | d651b886860e72a514320b62b7649d2e3e166b38fc2458370a0e18a20406ace3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDdDOkNFQzBBOjI5MzFGMUU6MzYyMTY5Qjo2QjAwMEM1RCIsInZpc2l0b3JfaWQiOiI0MjU5MzkzMzEyMDQzMDQzOTMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 553e580651a0496f0dc8978b25d103e59490208ef9dcc5ac04ba044546f9fece |
| hovercard-subject-tag | issue:264656558 |
| 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/4097/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f09390940c3142888da7ab0089e8dac6adb6e501cdba6e9e2d023e79e2a7e14/python/mypy/issues/4097 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f09390940c3142888da7ab0089e8dac6adb6e501cdba6e9e2d023e79e2a7e14/python/mypy/issues/4097 |
| og:image:alt | Traceback (most recent call last): File "/Users/daenyth/Curata/cmp/.tox/mypy/bin/mypy", line 11, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Daenyth |
| 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