René's URL Explorer Experiment


Title: Crash using forward-referencing type alias parameterised by dependent type variables · Issue #19186 · python/mypy · GitHub

Open Graph Title: Crash using forward-referencing type alias parameterised by dependent type variables · Issue #19186 · python/mypy

X Title: Crash using forward-referencing type alias parameterised by dependent type variables · Issue #19186 · python/mypy

Description: Crash Report & To Reproduce See mypy Playground. This is a much less obscure example than #19185, and came about while trying to find workarounds for that snippet. I'm not sure if it's related. from typing import Generic, TypeVar, TypeAl...

Open Graph Description: Crash Report & To Reproduce See mypy Playground. This is a much less obscure example than #19185, and came about while trying to find workarounds for that snippet. I'm not sure if it's related. fro...

X Description: Crash Report & To Reproduce See mypy Playground. This is a much less obscure example than #19185, and came about while trying to find workarounds for that snippet. I'm not sure if it's ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash using forward-referencing type alias parameterised by dependent type variables","articleBody":"**Crash Report & To Reproduce**\n\nSee [mypy Playground](https://mypy-play.net/?mypy=master&python=3.12&flags=show-traceback&gist=b8778e71d0239cd9a515dcc7278f8a56).\n\nThis is a much less obscure example than #19185, and came about while trying to find workarounds for that snippet. I'm not sure if it's related.\n\n```python\nfrom typing import Generic, TypeVar, TypeAlias\n\nT1 = TypeVar(\"T1\")\nT2 = TypeVar(\"T2\", default=T1)\n\nAlias: TypeAlias = \"MyClass[T1, T2]\"\n\nclass MyClass(Generic[\"T1\", \"T2\"]): ...\n```\n\n**Traceback**\n\n```\nDeferral trace:\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:-1\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\n    __main__:6\nmain.py: error: INTERNAL ERROR: maximum semantic analysis iteration count reached\nFound 1 error in 1 file (errors prevented further checking)\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.15, 1.16\n- Mypy command-line flags: --show-traceback\n- Mypy configuration options from `mypy.ini` (and other config files): None\n- Python version used: 3.9, 3.12\n","author":{"url":"https://github.com/bzoracler","@type":"Person","name":"bzoracler"},"datePublished":"2025-05-31T18:19:19Z","url":"https://github.com/python/mypy/issues/19186"}

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:2cfa84a2-223d-4e61-ce3e-72c11ebe4008
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA29A:1FB2:FCF3E0:15BD8C2:6B002895
html-safe-noncee850334df61be545ecfcf76a76bbcd2e87f29d03c7fd66ffdb0a9eb7509fa51a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjlBOjFGQjI6RkNGM0UwOjE1QkQ4QzI6NkIwMDI4OTUiLCJ2aXNpdG9yX2lkIjoiNDcyOTk1NzIyNjE0MjI0NzA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac65b823d5f2a574b11bb5e0ecfd685691ad8fc785df759abec56e01d522edd88a
hovercard-subject-tagissue:3105870214
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/19186/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fb46b04aa17e5ad66e1d4f4bf5eecd59bf1dfa548060a90c717e644fda9364e6/python/mypy/issues/19186
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fb46b04aa17e5ad66e1d4f4bf5eecd59bf1dfa548060a90c717e644fda9364e6/python/mypy/issues/19186
og:image:altCrash Report & To Reproduce See mypy Playground. This is a much less obscure example than #19185, and came about while trying to find workarounds for that snippet. I'm not sure if it's related. fro...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebzoracler
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/19186#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F19186
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%2F19186
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/19186
Reloadhttps://github.com/python/mypy/issues/19186
Reloadhttps://github.com/python/mypy/issues/19186
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/19186
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/19186
#20139https://github.com/python/mypy/pull/20139
Crash using forward-referencing type alias parameterised by dependent type variableshttps://github.com/python/mypy/issues/19186#top
#20139https://github.com/python/mypy/pull/20139
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
topic-pep-696TypeVar defaultshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-pep-696%22
topic-type-aliasTypeAlias and other type alias issueshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-type-alias%22
https://github.com/bzoracler
bzoraclerhttps://github.com/bzoracler
on May 31, 2025https://github.com/python/mypy/issues/19186#issue-3105870214
mypy Playgroundhttps://mypy-play.net/?mypy=master&python=3.12&flags=show-traceback&gist=b8778e71d0239cd9a515dcc7278f8a56
#19185https://github.com/python/mypy/issues/19185
bzoraclerhttps://github.com/bzoracler
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on May 31, 2025https://github.com/python/mypy/issues/19186#event-17903836766
ilevkivskyihttps://github.com/ilevkivskyi
topic-pep-696TypeVar defaultshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-pep-696%22
topic-type-aliasTypeAlias and other type alias issueshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-type-alias%22
on May 31, 2025https://github.com/python/mypy/issues/19186#event-17904744708
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on May 31, 2025https://github.com/python/mypy/issues/19186#issuecomment-2925706837
@JelleZijlstrahttps://github.com/JelleZijlstra
@cdce8phttps://github.com/cdce8p
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
on May 31, 2025https://github.com/python/mypy/issues/19186#issuecomment-2925714461
https://github.com/cdce8p
cdce8phttps://github.com/cdce8p
on May 31, 2025https://github.com/python/mypy/issues/19186#issuecomment-2925717025
https://github.com/bzoracler
bzoraclerhttps://github.com/bzoracler
on May 31, 2025https://github.com/python/mypy/issues/19186#issuecomment-2925720115
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
on May 31, 2025https://github.com/python/mypy/issues/19186#issuecomment-2925720434
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
on Jun 1, 2025https://github.com/python/mypy/issues/19186#issuecomment-2926049254
mypy/mypy/tvar_scope.pyhttps://github.com/python/mypy/blob/68233f6ff328f35c7ac26a7efdd325ae1248468b/mypy/tvar_scope.py#L109
68233f6https://github.com/python/mypy/commit/68233f6ff328f35c7ac26a7efdd325ae1248468b
mypy/mypy/semanal.pyhttps://github.com/python/mypy/blob/68233f6ff328f35c7ac26a7efdd325ae1248468b/mypy/semanal.py#L4110
68233f6https://github.com/python/mypy/commit/68233f6ff328f35c7ac26a7efdd325ae1248468b
sterliakovhttps://github.com/sterliakov
on Jul 15, 2025https://github.com/python/mypy/issues/19186#event-18643071923
Merge branch 'master' into bugfix/pythongh-19186-typevar-default-crashhttps://github.com/sterliakov/mypy/commit/ad58d8331b45f953afda5c3e57d61ebbdc79cc85
pythongh-19186https://github.com/python/mypy/issues/19186
ad58d83https://github.com/sterliakov/mypy/commit/ad58d8331b45f953afda5c3e57d61ebbdc79cc85
sterliakovhttps://github.com/sterliakov
on Aug 8, 2025https://github.com/python/mypy/issues/19186#event-19053955039
Merge branch 'master' into bugfix/pythongh-19186-typevar-default-crashhttps://github.com/sterliakov/mypy/commit/35a0d5650fefe38516a360b544379a4d274a579b
pythongh-19186https://github.com/python/mypy/issues/19186
35a0d56https://github.com/sterliakov/mypy/commit/35a0d5650fefe38516a360b544379a4d274a579b
sterliakovhttps://github.com/sterliakov
on Oct 30, 2025https://github.com/python/mypy/issues/19186#event-20613944701
Merge remote-tracking branch 'upstream/master' into bugfix/pythongh-1…https://github.com/sterliakov/mypy/commit/388fafeacede8056f44fadc409812b880e29a856
pythongh-1…https://github.com/python/mypy/issues/19186
388fafehttps://github.com/sterliakov/mypy/commit/388fafeacede8056f44fadc409812b880e29a856
ilevkivskyihttps://github.com/ilevkivskyi
on Nov 20, 2025https://github.com/python/mypy/issues/19186#event-21068440854
Merge remote-tracking branch 'upstream/master' into bugfix/pythongh-1…https://github.com/sterliakov/mypy/commit/d0760b10bc129e3ea67c82735e96d7728a59a846
pythongh-1…https://github.com/python/mypy/issues/19186
d0760b1https://github.com/sterliakov/mypy/commit/d0760b10bc129e3ea67c82735e96d7728a59a846
ilevkivskyihttps://github.com/ilevkivskyi
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
f24678fhttps://github.com/python/mypy/commit/f24678faacf26966daef558f9c94f552b9f809bf
on Nov 20, 2025https://github.com/python/mypy/issues/19186#event-21069172827
pullhttps://github.com/apps/pull
on Nov 20, 2025https://github.com/python/mypy/issues/19186#event-21070943704
Fix crashes caused by typevarlikes defaults in-place modifications (p…https://github.com/Mu-L/mypy/commit/f24678faacf26966daef558f9c94f552b9f809bf
p…https://github.com/python/mypy/pull/20139
https://docs.github.com/articles/closing-issues-via-commit-messages
f24678fhttps://github.com/Mu-L/mypy/commit/f24678faacf26966daef558f9c94f552b9f809bf
github-project-automationhttps://github.com/apps/github-project-automation
GC-Content-Calculatorhttps://github.com/users/RiyaPrabhakar-git/projects/1
on Dec 12, 2025https://github.com/python/mypy/issues/19186
RiyaPrabhakar-githttps://github.com/RiyaPrabhakar-git
GC-Content-Calculatorhttps://github.com/users/RiyaPrabhakar-git/projects/1
on Dec 12, 2025https://github.com/python/mypy/issues/19186#event-21527481208
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/19186
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/19186
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
topic-pep-696TypeVar defaultshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-pep-696%22
topic-type-aliasTypeAlias and other type alias issueshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-type-alias%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.