Title: mypy --follow-imports error or skip crashes with numpy 2.0.0 · Issue #17396 · python/mypy · GitHub
Open Graph Title: mypy --follow-imports error or skip crashes with numpy 2.0.0 · Issue #17396 · python/mypy
X Title: mypy --follow-imports error or skip crashes with numpy 2.0.0 · Issue #17396 · python/mypy
Description: This is a mypy crash revealed by the release of numpy 2.0.0. See also numpy/numpy#26720 Crash Report The crash is shown below. Notes: The crash does not happen with numpy==1.26.4 The same crash happens with mypy test.py --follow-imports ...
Open Graph Description: This is a mypy crash revealed by the release of numpy 2.0.0. See also numpy/numpy#26720 Crash Report The crash is shown below. Notes: The crash does not happen with numpy==1.26.4 The same crash hap...
X Description: This is a mypy crash revealed by the release of numpy 2.0.0. See also numpy/numpy#26720 Crash Report The crash is shown below. Notes: The crash does not happen with numpy==1.26.4 The same crash hap...
Opengraph URL: https://github.com/python/mypy/issues/17396
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy --follow-imports error or skip crashes with numpy 2.0.0","articleBody":"This is a mypy crash revealed by the release of numpy 2.0.0. See also https://github.com/numpy/numpy/issues/26720\r\n\r\n**Crash Report**\r\n\r\nThe crash is shown below. Notes:\r\n\r\n- The crash does not happen with numpy==1.26.4\r\n- The same crash happens with mypy test.py --follow-imports skip\r\n - It does not happen with mypy test.py --follow-imports normal\r\n\r\n**Traceback**\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"/Users/tom/Desktop/venv/bin/mypy\", line 8, in \u003cmodule>\r\n sys.exit(console_entry())\r\n File \"/Users/tom/Desktop/venv/lib/python3.10/site-packages/mypy/__main__.py\", line 15, in console_entry\r\n main()\r\n File \"mypy/main.py\", line 100, in main\r\n File \"mypy/main.py\", line 182, in run_build\r\n File \"mypy/build.py\", line 192, in build\r\n File \"mypy/build.py\", line 266, in _build\r\n File \"mypy/build.py\", line 2942, in dispatch\r\n File \"mypy/build.py\", line 3340, in process_graph\r\n File \"mypy/build.py\", line 3467, in process_stale_scc\r\n File \"mypy/build.py\", line 2503, in write_cache\r\n File \"mypy/build.py\", line 1564, in write_cache\r\n File \"mypy/nodes.py\", line 387, in serialize\r\n File \"mypy/nodes.py\", line 3936, in serialize\r\n File \"mypy/nodes.py\", line 3873, in serialize\r\n File \"mypy/nodes.py\", line 3304, in serialize\r\n File \"mypy/types.py\", line 667, in serialize\r\n File \"mypy/types.py\", line 2430, in serialize\r\n File \"mypy/types.py\", line 1468, in serialize\r\n File \"mypy/types.py\", line 667, in serialize\r\n File \"mypy/types.py\", line 3067, in serialize\r\nAssertionError: Internal error: unresolved placeholder type None\r\n```\r\n\r\n**To Reproduce**\r\n\r\n1. `pip install numpy mypy`\r\n2. `echo \"import numpy\" > test.py`\r\n3. `mypy test.py --follow-imports error`\r\n\r\n**Your Environment**\r\n\r\n- Mypy version used: mypy 1.10.0 (compiled: yes)\r\n- Mypy command-line flags: `--follow-imports error`\r\n- Mypy configuration options from `mypy.ini` (and other config files): N/A\r\n- Python version used: 3.10.6\r\n- Operating system and version: MacOS Monterey (12.5.1)\r\n","author":{"url":"https://github.com/tomsilver","@type":"Person","name":"tomsilver"},"datePublished":"2024-06-17T15:14:14Z","url":"https://github.com/python/mypy/issues/17396"}
| 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:2c3170cd-f8ec-ef73-8562-b5c3d5ae87f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE56:3204C8:1DAE518:26371F0:6AFFCE55 |
| html-safe-nonce | 2883fd208ba7f8b847db1baa2ef4a3a54924621e3a09797e986ee62e85690a2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTU2OjMyMDRDODoxREFFNTE4OjI2MzcxRjA6NkFGRkNFNTUiLCJ2aXNpdG9yX2lkIjoiOTAyMjMzOTYwMDM3MDA5MzY1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f5b45d180863ed8152eafe9a6f9a9f927f67e63777b67433d590b9cc53a636f |
| hovercard-subject-tag | issue:2357599991 |
| 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/17396/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5375ab705ace07ccf1a179df5d93aff0237f21df896a4b9bfb5eb8d06333968/python/mypy/issues/17396 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5375ab705ace07ccf1a179df5d93aff0237f21df896a4b9bfb5eb8d06333968/python/mypy/issues/17396 |
| og:image:alt | This is a mypy crash revealed by the release of numpy 2.0.0. See also numpy/numpy#26720 Crash Report The crash is shown below. Notes: The crash does not happen with numpy==1.26.4 The same crash hap... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomsilver |
| 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