René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2c3170cd-f8ec-ef73-8562-b5c3d5ae87f8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE56:3204C8:1DAE518:26371F0:6AFFCE55
html-safe-nonce2883fd208ba7f8b847db1baa2ef4a3a54924621e3a09797e986ee62e85690a2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTU2OjMyMDRDODoxREFFNTE4OjI2MzcxRjA6NkFGRkNFNTUiLCJ2aXNpdG9yX2lkIjoiOTAyMjMzOTYwMDM3MDA5MzY1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0f5b45d180863ed8152eafe9a6f9a9f927f67e63777b67433d590b9cc53a636f
hovercard-subject-tagissue:2357599991
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/17396/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d5375ab705ace07ccf1a179df5d93aff0237f21df896a4b9bfb5eb8d06333968/python/mypy/issues/17396
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5375ab705ace07ccf1a179df5d93aff0237f21df896a4b9bfb5eb8d06333968/python/mypy/issues/17396
og:image:altThis 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametomsilver
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/17396#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F17396
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F17396
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/issues/17396
Reloadhttps://github.com/python/mypy/issues/17396
Reloadhttps://github.com/python/mypy/issues/17396
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests547 (547)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/17396
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/17396
#18585https://github.com/python/mypy/pull/18585
mypy --follow-imports error or skip crashes with numpy 2.0.0https://github.com/python/mypy/issues/17396#top
#18585https://github.com/python/mypy/pull/18585
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
good-second-issuehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22good-second-issue%22
https://github.com/tomsilver
tomsilverhttps://github.com/tomsilver
on Jun 17, 2024https://github.com/python/mypy/issues/17396#issue-2357599991
numpy/numpy#26720https://github.com/numpy/numpy/issues/26720
Nexthttps://github.com/python/mypy/issues/17396?timeline_page=1
tomsilverhttps://github.com/tomsilver
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on Jun 17, 2024https://github.com/python/mypy/issues/17396#event-13187454892
https://github.com/fynnsu
fynnsuhttps://github.com/fynnsu
on Jun 18, 2024https://github.com/python/mypy/issues/17396#issuecomment-2176667366
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Jun 19, 2024https://github.com/python/mypy/issues/17396#issuecomment-2177892761
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Jun 19, 2024https://github.com/python/mypy/issues/17396#issuecomment-2177905488
https://github.com/rgommers
rgommershttps://github.com/rgommers
on Jun 19, 2024https://github.com/python/mypy/issues/17396#issuecomment-2177927839
@hauntsaninjahttps://github.com/hauntsaninja
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Jun 19, 2024https://github.com/python/mypy/issues/17396#issuecomment-2179231214
@rgommershttps://github.com/rgommers
https://github.com/rgommers
rgommershttps://github.com/rgommers
on Jun 19, 2024https://github.com/python/mypy/issues/17396#issuecomment-2179359653
@hauntsaninjahttps://github.com/hauntsaninja
https://github.com/owillebo
owillebohttps://github.com/owillebo
on Jun 24, 2024https://github.com/python/mypy/issues/17396#issuecomment-2185995930
test.txthttps://github.com/user-attachments/files/15952574/test.txt
https://github.com/Inkaros
Inkaroshttps://github.com/Inkaros
on Jun 25, 2024https://github.com/python/mypy/issues/17396#issuecomment-2188565709
inducerhttps://github.com/inducer
on Jun 25, 2024https://github.com/python/mypy/issues/17396#event-13283462954
Drop --follow-imports=skip in run-mypyhttps://github.com/inducer/pytools/commit/fdf337df9c9a8c076ccfc4e987ff997a790d2e42
fdf337dhttps://github.com/inducer/pytools/commit/fdf337df9c9a8c076ccfc4e987ff997a790d2e42
Drop --follow-imports=skip in run-mypyhttps://github.com/inducer/pytools/commit/bd801c6a8c0c05460ff5ea46a2181fc58530361c
bd801c6https://github.com/inducer/pytools/commit/bd801c6a8c0c05460ff5ea46a2181fc58530361c
Tweak mypy runner for internal mypy errorhttps://github.com/inducer/pytools/commit/074a9c2e308cbd6c0473644b860cf3b1f97ce76c
074a9c2https://github.com/inducer/pytools/commit/074a9c2e308cbd6c0473644b860cf3b1f97ce76c
Tweak mypy runner for internal mypy errorhttps://github.com/inducer/pytools/commit/33a71d4b3ec377f1f62e7dc539c06b4daafb335a
33a71d4https://github.com/inducer/pytools/commit/33a71d4b3ec377f1f62e7dc539c06b4daafb335a
Tweak mypy runner for internal mypy errorhttps://github.com/inducer/pytools/commit/2174d745124cd06a9c8c8535375c33d7789f9878
2174d74https://github.com/inducer/pytools/commit/2174d745124cd06a9c8c8535375c33d7789f9878
Tweak mypy runner for internal mypy errorhttps://github.com/inducer/pytools/commit/a72807364f876596d9613032952bb3cf45e78774
a728073https://github.com/inducer/pytools/commit/a72807364f876596d9613032952bb3cf45e78774
tttapahttps://github.com/tttapa
on Nov 14, 2024https://github.com/python/mypy/issues/17396#event-15305329782
[Py] pin Mypy until python/mypy#17396 is fixedhttps://github.com/kul-optec/QPALM/commit/6a02158b44e08407a98d566bfea20ddb8e67641b
python/mypy#17396https://github.com/python/mypy/issues/17396
6a02158https://github.com/kul-optec/QPALM/commit/6a02158b44e08407a98d566bfea20ddb8e67641b
https://github.com/youkaichao
youkaichaohttps://github.com/youkaichao
on Nov 24, 2024https://github.com/python/mypy/issues/17396#issuecomment-2495784724
hauntsaninjahttps://github.com/hauntsaninja
good-second-issuehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22good-second-issue%22
on Nov 24, 2024https://github.com/python/mypy/issues/17396#event-15409529265
https://github.com/Inkaros
Inkaroshttps://github.com/Inkaros
on Nov 24, 2024https://github.com/python/mypy/issues/17396#issuecomment-2495796805
hauntsaninjahttps://github.com/hauntsaninja
on Dec 28, 2024https://github.com/python/mypy/issues/17396#event-15777308680
Fix crash from NamedTuple placeholderhttps://github.com/hauntsaninja/mypy/commit/0f88fa1b39a5ae21551738d90be97fe94340f3d3
0f88fa1https://github.com/hauntsaninja/mypy/commit/0f88fa1b39a5ae21551738d90be97fe94340f3d3
ilevkivskyihttps://github.com/ilevkivskyi
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#18585https://github.com/python/mypy/pull/18585
on Feb 3, 2025https://github.com/python/mypy/issues/17396#event-16167697111
ilevkivskyihttps://github.com/ilevkivskyi
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
237933ahttps://github.com/python/mypy/commit/237933a5428fe1c6a510d6da71e7695117d720e5
on Feb 3, 2025https://github.com/python/mypy/issues/17396#event-16167697147
sthagenhttps://github.com/sthagen
on Feb 3, 2025https://github.com/python/mypy/issues/17396#event-16168839943
Prevent crash on generic NamedTuple with unresolved typevar bound (py…https://github.com/sthagen/python-mypy/commit/237933a5428fe1c6a510d6da71e7695117d720e5
py…https://github.com/python/mypy/pull/18585
https://docs.github.com/articles/closing-issues-via-commit-messages
237933ahttps://github.com/sthagen/python-mypy/commit/237933a5428fe1c6a510d6da71e7695117d720e5
wesleywrighthttps://github.com/wesleywright
on Feb 4, 2025https://github.com/python/mypy/issues/17396#event-16170643421
Prevent crash on generic NamedTuple with unresolved typevar bound (#1…https://github.com/python/mypy/commit/85066b8344e7fe14600ea9c2a8adf04d47b92188
#1…https://github.com/python/mypy/pull/18585
https://docs.github.com/articles/closing-issues-via-commit-messages
85066b8https://github.com/python/mypy/commit/85066b8344e7fe14600ea9c2a8adf04d47b92188
Prevent crash on generic NamedTuple with unresolved typevar bound (#1…https://github.com/python/mypy/commit/ebc2cb8befbadfc10b962af018b3fa3842d3fd87
#1…https://github.com/python/mypy/pull/18585
https://docs.github.com/articles/closing-issues-via-commit-messages
ebc2cb8https://github.com/python/mypy/commit/ebc2cb8befbadfc10b962af018b3fa3842d3fd87
x612skmhttps://github.com/x612skm
on Feb 24, 2025https://github.com/python/mypy/issues/17396#event-16437210803
Prevent crash on generic NamedTuple with unresolved typevar bound (py…https://github.com/x612skm/mypy-dev/commit/fc2798dc0c1492879e45ae2a3047a3819a143595
py…https://github.com/python/mypy/pull/18585
https://docs.github.com/articles/closing-issues-via-commit-messages
fc2798dhttps://github.com/x612skm/mypy-dev/commit/fc2798dc0c1492879e45ae2a3047a3819a143595
alixdammanhttps://github.com/alixdamman
on May 18, 2025https://github.com/python/mypy/issues/17396#event-17704419619
PYTHON: updated generate_stub_files.py.in to include '--no-analysis' …https://github.com/plan-be/iode/commit/3346d28cf5619cf6f298677eec49828ac1645260
3346d28https://github.com/plan-be/iode/commit/3346d28cf5619cf6f298677eec49828ac1645260
PYTHON: updated generate_stub_files.py.in to include '--no-analysis' …https://github.com/plan-be/iode/commit/6342dc5885a2e8b8db6695e5f3e3b270929eb4ab
6342dc5https://github.com/plan-be/iode/commit/6342dc5885a2e8b8db6695e5f3e3b270929eb4ab
PYTHON: updated generate_stub_files.py.in to include '--no-analysis' …https://github.com/plan-be/iode/commit/bc168f56bb18f06c409f7bb205871c39c85ab579
bc168f5https://github.com/plan-be/iode/commit/bc168f56bb18f06c409f7bb205871c39c85ab579
brianschuberthttps://github.com/brianschubert
When importing numpy>=2.0.0, report "AssertionError: Internal error: unresolved placeholder type None" when using stubgen #17538https://github.com/python/mypy/issues/17538
on Jun 9, 2025https://github.com/python/mypy/issues/17396#event-18058996023
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/17396
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/17396
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
good-second-issuehttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22good-second-issue%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.