Title: Crash with "AssertionError: Should never get here in normal mode" · Issue #5192 · python/mypy · GitHub
Open Graph Title: Crash with "AssertionError: Should never get here in normal mode" · Issue #5192 · python/mypy
X Title: Crash with "AssertionError: Should never get here in normal mode" · Issue #5192 · python/mypy
Description: 🐛 Python 3.6.5, mypy 0.610 Reproducible on https://github.com/pypa/pip master. Running tox -e mypy on that repo a second time or later, results in an error the second time. mypy configuration: [mypy] follow_imports = silent ignore_missin...
Open Graph Description: 🐛 Python 3.6.5, mypy 0.610 Reproducible on https://github.com/pypa/pip master. Running tox -e mypy on that repo a second time or later, results in an error the second time. mypy configuration: [myp...
X Description: 🐛 Python 3.6.5, mypy 0.610 Reproducible on https://github.com/pypa/pip master. Running tox -e mypy on that repo a second time or later, results in an error the second time. mypy configuration: [myp...
Opengraph URL: https://github.com/python/mypy/issues/5192
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash with \"AssertionError: Should never get here in normal mode\"","articleBody":"🐛 Python 3.6.5, mypy 0.610\r\n\r\nReproducible on https://github.com/pypa/pip master. Running `tox -e mypy` on that repo a second time or later, results in an error the second time.\r\n\r\nmypy configuration:\r\n\r\n```ini\r\n[mypy]\r\nfollow_imports = silent\r\nignore_missing_imports = True\r\nstrict_optional = False\r\n\r\n[mypy-pip/_vendor/*]\r\nfollow_imports = skip\r\nignore_errors = True\r\n```\r\n\r\nmypy output/traceback:\r\n\r\n```\r\nmypy runtests: commands[0] | mypy src/pip\r\nTraceback (most recent call last):\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/bin/mypy\", line 11, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/__main__.py\", line 7, in console_entry\r\n main(None)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/main.py\", line 91, in main\r\n res = type_check_only(sources, bin_dir, options, flush_errors, fscache) # noqa\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/main.py\", line 148, in type_check_only\r\n fscache=fscache)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 185, in build\r\n flush_errors, fscache)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 285, in _build\r\n graph = dispatch(sources, manager)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 2398, in dispatch\r\n process_graph(graph, manager)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 2684, in process_graph\r\n process_fresh_modules(graph, prev_scc, manager)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 2770, in process_fresh_modules\r\n graph[id].fix_cross_refs()\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py\", line 1853, in fix_cross_refs\r\n self.options.use_fine_grained_cache)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py\", line 25, in fixup_module\r\n node_fixer.visit_symbol_table(tree.names)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py\", line 95, in visit_symbol_table\r\n self.visit_type_info(value.node)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py\", line 48, in visit_type_info\r\n base.accept(self.type_fixer)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/types.py\", line 512, in accept\r\n return visitor.visit_instance(self)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py\", line 156, in visit_instance\r\n inst.type = lookup_qualified_typeinfo(self.modules, type_ref, self.quick_and_dirty)\r\n File \"/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py\", line 246, in lookup_qualified_typeinfo\r\n assert quick_and_dirty, \"Should never get here in normal mode\"\r\nAssertionError: Should never get here in normal mode\r\nERROR: InvocationError for command '/Users/pradyunsg/Projects/pip/.tox/mypy/bin/mypy src/pip' (exited with code 1)\r\n```\r\n","author":{"url":"https://github.com/pradyunsg","@type":"Person","name":"pradyunsg"},"datePublished":"2018-06-11T03:59:16Z","url":"https://github.com/python/mypy/issues/5192"}
| 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:d080a461-43b6-a143-9cae-1b65fa278a2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 905A:177D5B:2FA3E9B:3EEF40A:6B002739 |
| html-safe-nonce | 5dc27f7841180943716a18a46d091531a3089b997f7db5b7acd5abbc3badf921 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDVBOjE3N0Q1QjoyRkEzRTlCOjNFRUY0MEE6NkIwMDI3MzkiLCJ2aXNpdG9yX2lkIjoiMzI3NDE0MzAwMTM0NTAwOTQ2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8253ec0620cc5c32c7af4bf59535a8ec3e22619cb1aabe1d799f6b5f301955d1 |
| hovercard-subject-tag | issue:331038331 |
| 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/5192/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81ce5afef4c81f135542c5ee4cd4392936d5aa6a7ba2aec5586c2a14f74f892f/python/mypy/issues/5192 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81ce5afef4c81f135542c5ee4cd4392936d5aa6a7ba2aec5586c2a14f74f892f/python/mypy/issues/5192 |
| og:image:alt | 🐛 Python 3.6.5, mypy 0.610 Reproducible on https://github.com/pypa/pip master. Running tox -e mypy on that repo a second time or later, results in an error the second time. mypy configuration: [myp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pradyunsg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width