René's URL Explorer Experiment


Title: [1.16 regression] crashes on invalid and self-referential setter · Issue #19205 · python/mypy · GitHub

Open Graph Title: [1.16 regression] crashes on invalid and self-referential setter · Issue #19205 · python/mypy

X Title: [1.16 regression] crashes on invalid and self-referential setter · Issue #19205 · python/mypy

Description: Crash Report (Tell us what happened.) Traceback xtf-py3.12vfazio@vfazio4 /mnt/development/xtf $ mypy --show-traceback simple.py simple.py:24: error: INTERNAL ERROR -- Please try using mypy master on GitHub: https://mypy.readthedocs.io/en...

Open Graph Description: Crash Report (Tell us what happened.) Traceback xtf-py3.12vfazio@vfazio4 /mnt/development/xtf $ mypy --show-traceback simple.py simple.py:24: error: INTERNAL ERROR -- Please try using mypy master o...

X Description: Crash Report (Tell us what happened.) Traceback xtf-py3.12vfazio@vfazio4 /mnt/development/xtf $ mypy --show-traceback simple.py simple.py:24: error: INTERNAL ERROR -- Please try using mypy master o...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[1.16 regression] crashes on invalid and self-referential setter","articleBody":"\u003c!--\n  Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\n  Please include the traceback and all other messages below (use `mypy --show-traceback`).\n-->\n\n**Crash Report**\n\n(Tell us what happened.)\n\n**Traceback**\n\n```\nxtf-py3.12vfazio@vfazio4 /mnt/development/xtf $ mypy --show-traceback simple.py \nsimple.py:24: error: INTERNAL ERROR -- Please try using mypy master on GitHub:\nhttps://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build\nPlease report a bug at https://github.com/python/mypy/issues\nversion: 1.17.0+dev.04afa499f936f671ee3f5a53edf3f5c8df18e76c\nTraceback (most recent call last):\n  File \"/mnt/development/xtf/.venv/bin/mypy\", line 8, in \u003cmodule>\n    sys.exit(console_entry())\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/__main__.py\", line 15, in console_entry\n    main()\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/main.py\", line 127, in main\n    res, messages, blockers = run_build(sources, options, fscache, t0, stdout, stderr)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/main.py\", line 211, in run_build\n    res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/build.py\", line 191, in build\n    result = _build(\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/build.py\", line 267, in _build\n    graph = dispatch(sources, manager, stdout)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/build.py\", line 2939, in dispatch\n    process_graph(graph, manager)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/build.py\", line 3337, in process_graph\n    process_stale_scc(graph, scc, manager)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/build.py\", line 3438, in process_stale_scc\n    graph[id].type_check_first_pass()\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/build.py\", line 2311, in type_check_first_pass\n    self.type_checker().check_first_pass()\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 471, in check_first_pass\n    self.accept(d)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 578, in accept\n    stmt.accept(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/nodes.py\", line 1216, in accept\n    return visitor.visit_class_def(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 2542, in visit_class_def\n    self.accept(defn.defs)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 578, in accept\n    stmt.accept(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/nodes.py\", line 1297, in accept\n    return visitor.visit_block(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 3031, in visit_block\n    self.accept(s)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 578, in accept\n    stmt.accept(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/nodes.py\", line 590, in accept\n    return visitor.visit_overloaded_func_def(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 663, in visit_overloaded_func_def\n    self._visit_overloaded_func_def(defn)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 682, in _visit_overloaded_func_def\n    self.visit_decorator_inner(defn.items[1], skip_first_item=True)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 5249, in visit_decorator_inner\n    self.check_func_item(e.func, name=e.func.name, allow_empty=allow_empty)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 1170, in check_func_item\n    self.check_func_def(defn, typ, name, allow_empty)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 1457, in check_func_def\n    self.accept(item.body)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 578, in accept\n    stmt.accept(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/nodes.py\", line 1297, in accept\n    return visitor.visit_block(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 3031, in visit_block\n    self.accept(s)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 578, in accept\n    stmt.accept(self)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/nodes.py\", line 1384, in accept\n    return visitor.visit_assignment_stmt(self)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 3080, in visit_assignment_stmt\n    self.check_assignment(s.lvalues[-1], s.rvalue, s.type is None, s.new_syntax)\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 3141, in check_assignment\n    lvalue_type, index_lvalue, inferred = self.check_lvalue(lvalue, rvalue)\n                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checker.py\", line 4245, in check_lvalue\n    lvalue_type = self.expr_checker.analyze_ordinary_member_access(lvalue, True, rvalue)\n                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checkexpr.py\", line 3333, in analyze_ordinary_member_access\n    member_type = analyze_member_access(\n                  ^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checkmember.py\", line 226, in analyze_member_access\n    result = _analyze_member_access(name, typ, mx, override_info)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checkmember.py\", line 243, in _analyze_member_access\n    return analyze_instance_member_access(name, typ, mx, override_info)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checkmember.py\", line 350, in analyze_instance_member_access\n    return analyze_var(name, getter.var, typ, mx)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checkmember.py\", line 925, in analyze_var\n    item = expand_and_bind_callable(p_ct, var, itype, name, mx, is_trivial_self)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/mnt/development/xtf/.venv/lib/python3.12/site-packages/mypy/checkmember.py\", line 984, in expand_and_bind_callable\n    return expanded.arg_types[0]\n           ~~~~~~~~~~~~~~~~~~^^^\nIndexError: list index out of range\nsimple.py:24: : note: use --pdb to drop into pdb\n```\n\n**To Reproduce**\n\n(Write what you did to reproduce the crash.  Full source code is\nappreciated.  We also very much appreciate it if you try to narrow the\nsource down to a small stand-alone example.)\n\n```python\nfrom typing import TYPE_CHECKING, Any, ClassVar, TypeVar\n\nclass NoopPowerResource:\n    _hardware_type = None\n\n    @property\n    def hardware_type(self) -> Any:\n        return self._hardware_type\n\n    @hardware_type.setter\n    def hardware_type(self) -> None:\n        self.hardware_type = None\n```\n\n**Your Environment**\n\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\n\n- Mypy version used: 1.16.0 + 1.17.0+dev.04afa499f936f671ee3f5a53edf3f5c8df18e76c\n- Mypy command-line flags:\n- Mypy configuration options from `mypy.ini` (and other config files):\n- Python version used: CPython 3.12.4\n- Operating system and version: Ubuntu 22.04\n\n\u003c!--\nYou can freely edit this text, please remove all the lines\nyou believe are unnecessary.\n-->\n","author":{"url":"https://github.com/vfazio","@type":"Person","name":"vfazio"},"datePublished":"2025-06-02T12:03:05Z","url":"https://github.com/python/mypy/issues/19205"}

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:5aa0a7c4-8644-6abb-ca34-c9f04c59cf00
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8792:3C2A9A:14E90B5:1B6CAC0:6B000CB8
html-safe-nonce02bc548eca045a7a686c0aa39a7e74d7791a5168be101dadc97bcf6b8d3fd7ee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzkyOjNDMkE5QToxNEU5MEI1OjFCNkNBQzA6NkIwMDBDQjgiLCJ2aXNpdG9yX2lkIjoiNjQ3ODk5MjI0ODM3NjY1OTEyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac04f351065f756321a88cbcb9bb3b7f9949c3586f5600277b8ba683fcc1dae2b4
hovercard-subject-tagissue:3109893448
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/19205/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bbc0309ead20fb350c440adc6fabcc389e42c5b560edd3521406c77bb3a68677/python/mypy/issues/19205
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bbc0309ead20fb350c440adc6fabcc389e42c5b560edd3521406c77bb3a68677/python/mypy/issues/19205
og:image:altCrash Report (Tell us what happened.) Traceback xtf-py3.12vfazio@vfazio4 /mnt/development/xtf $ mypy --show-traceback simple.py simple.py:24: error: INTERNAL ERROR -- Please try using mypy master o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevfazio
hostnamegithub.com
expected-hostnamegithub.com
Nonecf7ee0062053ad9eb05b6e5de57bd96c2055708bcbada4144946b5ec129cf1d7
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
release9cab7de176a56362d2aabcbb4d1e07e846eba8a0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/19205#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F19205
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%2F19205
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/19205
Reloadhttps://github.com/python/mypy/issues/19205
Reloadhttps://github.com/python/mypy/issues/19205
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/19205
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/19205
#19208https://github.com/python/mypy/pull/19208
[1.16 regression] crashes on invalid and self-referential setterhttps://github.com/python/mypy/issues/19205#top
#19208https://github.com/python/mypy/pull/19208
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
https://github.com/vfazio
vfaziohttps://github.com/vfazio
on Jun 2, 2025https://github.com/python/mypy/issues/19205#issue-3109893448
vfaziohttps://github.com/vfazio
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17931871689
https://github.com/vfazio
vfaziohttps://github.com/vfazio
on Jun 2, 2025https://github.com/python/mypy/issues/19205#issuecomment-2930366113
#18510https://github.com/python/mypy/pull/18510
vfaziohttps://github.com/vfazio
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17932007092
vfaziohttps://github.com/vfazio
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17932010181
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
on Jun 2, 2025https://github.com/python/mypy/issues/19205#issuecomment-2931546594
#18774https://github.com/python/mypy/pull/18774
@ilevkivskyihttps://github.com/ilevkivskyi
JukkaLhttps://github.com/JukkaL
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17938737764
JukkaLhttps://github.com/JukkaL
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17938749774
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on Jun 2, 2025https://github.com/python/mypy/issues/19205#issuecomment-2931586605
JukkaLhttps://github.com/JukkaL
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17938752273
ilevkivskyihttps://github.com/ilevkivskyi
on Jun 2, 2025https://github.com/python/mypy/issues/19205#event-17938807557
https://github.com/vfazio
vfaziohttps://github.com/vfazio
on Jun 2, 2025https://github.com/python/mypy/issues/19205#issuecomment-2931863479
hauntsaninjahttps://github.com/hauntsaninja
on Jun 3, 2025https://github.com/python/mypy/issues/19205#event-17950571713
Fix crash on invalid property inside its own body (#19208)https://github.com/python/mypy/commit/5727d33012d5ce786423f2abb1e091fb54a70976
#19208https://github.com/python/mypy/pull/19208
5727d33https://github.com/python/mypy/commit/5727d33012d5ce786423f2abb1e091fb54a70976
hauntsaninjahttps://github.com/hauntsaninja
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#19208https://github.com/python/mypy/pull/19208
on Jun 3, 2025https://github.com/python/mypy/issues/19205#event-17950571714
JukkaLhttps://github.com/JukkaL
on Jun 11, 2025https://github.com/python/mypy/issues/19205#event-18094151542
Fix crash on invalid property inside its own body (#19208)https://github.com/python/mypy/commit/0a4f28431faa18e59d35bc269cb0ea6c00810653
#19208https://github.com/python/mypy/pull/19208
0a4f284https://github.com/python/mypy/commit/0a4f28431faa18e59d35bc269cb0ea6c00810653
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/19205
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/19205
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%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.