René's URL Explorer Experiment


Title: Crash type-checking overloaded function · Issue #15060 · python/mypy · GitHub

Open Graph Title: Crash type-checking overloaded function · Issue #15060 · python/mypy

X Title: Crash type-checking overloaded function · Issue #15060 · python/mypy

Description: Crash Report Crash typing code that previously on older mypy versions worked fine. Not sure exactly how old the last working mypy version is for this, though (I think the release that broke this would have had to have been some time arou...

Open Graph Description: Crash Report Crash typing code that previously on older mypy versions worked fine. Not sure exactly how old the last working mypy version is for this, though (I think the release that broke this wo...

X Description: Crash Report Crash typing code that previously on older mypy versions worked fine. Not sure exactly how old the last working mypy version is for this, though (I think the release that broke this wo...

Opengraph URL: https://github.com/python/mypy/issues/15060

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash type-checking overloaded function","articleBody":"\u003c!--\r\n  Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n  Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nCrash typing code that previously on older mypy versions worked fine. Not sure exactly how old the last working mypy version is for this, though (I think the release that broke this would have had to have been some time around January 2023).\r\n\r\n**Traceback**\r\n\r\n```\r\nfmap_mypy_test.py:46: error: INTERNAL ERROR -- Please try using mypy master on GitHub:\r\nhttps://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build\r\nPlease report a bug at https://github.com/python/mypy/issues\r\nversion: 1.2.0\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files\\Python39\\lib\\runpy.py\", line 197, in _run_module_as_main\r\n    return _run_code(code, main_globals, None,\r\n  File \"C:\\Program Files\\Python39\\lib\\runpy.py\", line 87, in _run_code\r\n    exec(code, run_globals)\r\n  File \"mypy\\checkexpr.py\", line 4885, in accept\r\n  File \"mypy\\nodes.py\", line 2032, in accept\r\n  File \"mypy\\checkexpr.py\", line 2917, in visit_op_expr\r\n  File \"mypy\\checkexpr.py\", line 3486, in check_op\r\n  File \"mypy\\checkexpr.py\", line 3408, in check_op_reversible\r\n  File \"mypy\\checkexpr.py\", line 3267, in check_method_call\r\n  File \"mypy\\checkexpr.py\", line 1303, in check_call\r\n  File \"mypy\\checkexpr.py\", line 2252, in check_overload_call\r\n  File \"mypy\\checkexpr.py\", line 2406, in infer_overload_return_type\r\n  File \"mypy\\checkexpr.py\", line 1292, in check_call\r\n  File \"mypy\\checkexpr.py\", line 1432, in check_callable_call\r\n  File \"mypy\\expandtype.py\", line 148, in freshen_function_type_vars\r\n  File \"mypy\\expandtype.py\", line 77, in expand_type\r\n  File \"mypy\\types.py\", line 1869, in accept\r\n  File \"mypy\\expandtype.py\", line 418, in visit_callable_type\r\n  File \"mypy\\types.py\", line 1357, in accept\r\n  File \"mypy\\expandtype.py\", line 230, in visit_instance\r\n  File \"mypy\\expandtype.py\", line 458, in expand_types_with_unpack\r\n  File \"mypy\\types.py\", line 2656, in accept\r\n  File \"mypy\\expandtype.py\", line 484, in visit_union_type\r\n  File \"mypy\\expandtype.py\", line 516, in expand_types\r\n  File \"mypy\\types.py\", line 1206, in accept\r\n  File \"mypy\\expandtype.py\", line 221, in visit_erased_type\r\nRuntimeError:\r\nfmap_mypy_test.py:46: : note: use --pdb to drop into pdb\r\n```\r\n\r\n**To Reproduce**\r\n\r\nI was able to isolate the error down to just a relatively small code snippet. Just run `mypy` on https://gist.github.com/evhub/10d62ee526dddb9c9b27ad8c4632e32d to reproduce. Lines marked \"OFFENDING LINES\" are the ones that seem to be causing the error.\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 1.2.0\r\n- Mypy command-line flags: just `--show-traceback`\r\n- Mypy configuration options from `mypy.ini` (and other config files): None\r\n- Python version used: 3.9.7\r\n- Operating system and version: Windows 10\r\n\r\n\u003c!--\r\nYou can freely edit this text, please remove all the lines\r\nyou believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/evhub","@type":"Person","name":"evhub"},"datePublished":"2023-04-16T05:34:33Z","url":"https://github.com/python/mypy/issues/15060"}

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:12ce4f83-59e8-fe23-64b1-c6eba6b4146b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC81A:29A20E:2309C94:2FA4DF6:6B002A1B
html-safe-nonceaec29624e173db8bf229b16ccbb6d40221d5b70b8cedf6faa02d50502443fd6c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODFBOjI5QTIwRToyMzA5Qzk0OjJGQTRERjY6NkIwMDJBMUIiLCJ2aXNpdG9yX2lkIjoiNjA4MTg5ODE2NTEwMTkzMTAzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac98b83e4b79be66da26eb9cbf4e9281e8b4c0e270f56175e4811239e54f7be1b3
hovercard-subject-tagissue:1669691586
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/15060/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cba359e9e8ac8601c159d5a0e3e903d9aae2c5e2ca92f9754f71d614cc8e0a39/python/mypy/issues/15060
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cba359e9e8ac8601c159d5a0e3e903d9aae2c5e2ca92f9754f71d614cc8e0a39/python/mypy/issues/15060
og:image:altCrash Report Crash typing code that previously on older mypy versions worked fine. Not sure exactly how old the last working mypy version is for this, though (I think the release that broke this wo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameevhub
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/15060#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F15060
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%2F15060
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/15060
Reloadhttps://github.com/python/mypy/issues/15060
Reloadhttps://github.com/python/mypy/issues/15060
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/15060
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/15060
#15155https://github.com/python/mypy/pull/15155
Crash type-checking overloaded functionhttps://github.com/python/mypy/issues/15060#top
#15155https://github.com/python/mypy/pull/15155
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
https://github.com/evhub
evhubhttps://github.com/evhub
on Apr 16, 2023https://github.com/python/mypy/issues/15060#issue-1669691586
https://gist.github.com/evhub/10d62ee526dddb9c9b27ad8c4632e32dhttps://gist.github.com/evhub/10d62ee526dddb9c9b27ad8c4632e32d
evhubhttps://github.com/evhub
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on Apr 16, 2023https://github.com/python/mypy/issues/15060#event-9015727689
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Apr 16, 2023https://github.com/python/mypy/issues/15060#issuecomment-1510135042
#14178https://github.com/python/mypy/pull/14178
JukkaLhttps://github.com/JukkaL
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#15155https://github.com/python/mypy/pull/15155
on May 2, 2023https://github.com/python/mypy/issues/15060#event-9145834273
JukkaLhttps://github.com/JukkaL
on May 2, 2023https://github.com/python/mypy/issues/15060#event-9145834477
Fix crash on lambda in generic context with generic method in body (#…https://github.com/python/mypy/commit/9f69beaf258b330d7472a12da06ec3074f883c5e
#…https://github.com/python/mypy/pull/15155
https://docs.github.com/articles/closing-issues-via-commit-messages
9f69beahttps://github.com/python/mypy/commit/9f69beaf258b330d7472a12da06ec3074f883c5e
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/15060
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/15060
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%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.