René's URL Explorer Experiment


Title: Fix `[name-defined]` false-positive in `class A[X, Y=X]:` case by sobolevn · Pull Request #20021 · python/mypy · GitHub

Open Graph Title: Fix `[name-defined]` false-positive in `class A[X, Y=X]:` case by sobolevn · Pull Request #20021 · python/mypy

X Title: Fix `[name-defined]` false-positive in `class A[X, Y=X]:` case by sobolevn · Pull Request #20021 · python/mypy

Description: Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.

Open Graph Description: This a WIP to see the test result before adding my own tests :) Closes #20020

X Description: This a WIP to see the test result before adding my own tests :) Closes #20020

Opengraph URL: https://github.com/python/mypy/pull/20021

X: @github

direct link

Domain: github.com

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a6d9b16c-e199-1ea1-8504-151cfd08d3b9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBB60:BACA4:2F6FB55:3EDC0ED:6B002E44
html-safe-nonce1982d7820afd91d4774a3b207d297d0d48db2d3640db9ed1283f56401d86964b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjYwOkJBQ0E0OjJGNkZCNTU6M0VEQzBFRDo2QjAwMkU0NCIsInZpc2l0b3JfaWQiOiIyMzU1OTIyNDc1NzA5MTE1OTcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac99a9a9b43766e27dae937cf4016bd9cffdbe5361965b9c603516f14888bcaaf5
hovercard-subject-tagpull_request:2895382919
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/mypy/20021/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c2979da4868c3be52c119ecd9f44f5390c07a4c57bd2f4b9670cc24d29e5c259/python/mypy/pull/20021
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2979da4868c3be52c119ecd9f44f5390c07a4c57bd2f4b9670cc24d29e5c259/python/mypy/pull/20021
og:image:altThis a WIP to see the test result before adding my own tests :) Closes #20020
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesobolevn
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
turbo-cache-controlno-cache
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-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/20021#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F20021
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%2Fpull%2F20021
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/pull/20021
Reloadhttps://github.com/python/mypy/pull/20021
Reloadhttps://github.com/python/mypy/pull/20021
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
sobolevnhttps://github.com/sobolevn
masterhttps://github.com/python/mypy/tree/master
wip-typevar-defaultshttps://github.com/python/mypy/tree/wip-typevar-defaults
Conversationhttps://github.com/python/mypy/pull/20021
Commits3 (3)https://github.com/python/mypy/pull/20021/commits
Checkshttps://github.com/python/mypy/pull/20021/checks
Files changedhttps://github.com/python/mypy/pull/20021/files
Fix [name-defined] false-positive in class A[X, Y=X]: casehttps://github.com/python/mypy/pull/20021#top
sobolevnhttps://github.com/sobolevn
masterhttps://github.com/python/mypy/tree/master
wip-typevar-defaultshttps://github.com/python/mypy/tree/wip-typevar-defaults
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Oct 7, 2025https://github.com/python/mypy/pull/20021#issue-3493064935
Please reload this pagehttps://github.com/python/mypy/pull/20021
#20020https://github.com/python/mypy/issues/20020
Please reload this pagehttps://github.com/python/mypy/pull/20021
https://github.com/sobolevn
Fix [name-defined] false-negative in class A[X, Y=X]: casehttps://github.com/python/mypy/pull/20021/commits/083ffca02cfaf1ccffe29abaef864f56857ee623
083ffcahttps://github.com/python/mypy/pull/20021/commits/083ffca02cfaf1ccffe29abaef864f56857ee623
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
force-pushedhttps://github.com/python/mypy/compare/b3a64cd768cb54ed0d57fcb7bcd09854e3d87b1c..083ffca02cfaf1ccffe29abaef864f56857ee623
b3a64cdhttps://github.com/python/mypy/commit/b3a64cd768cb54ed0d57fcb7bcd09854e3d87b1c
083ffcahttps://github.com/python/mypy/commit/083ffca02cfaf1ccffe29abaef864f56857ee623
Compare https://github.com/python/mypy/compare/b3a64cd768cb54ed0d57fcb7bcd09854e3d87b1c..083ffca02cfaf1ccffe29abaef864f56857ee623
October 7, 2025 21:22https://github.com/python/mypy/pull/20021#event-20150170070
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F20021
https://github.com/sobolevn
Add testhttps://github.com/python/mypy/pull/20021/commits/07b17f3661f340914e385d14951c60190832ad71
07b17f3https://github.com/python/mypy/pull/20021/commits/07b17f3661f340914e385d14951c60190832ad71
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
October 7, 2025 21:41https://github.com/python/mypy/pull/20021#event-20150407929
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
ilevkivskyihttps://github.com/ilevkivskyi
October 7, 2025 21:42https://github.com/python/mypy/pull/20021#event-20150409170
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Oct 7, 2025https://github.com/python/mypy/pull/20021#issuecomment-3378813863
Please reload this pagehttps://github.com/python/mypy/pull/20021
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/20021
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F20021
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Oct 8, 2025 https://github.com/python/mypy/pull/20021#pullrequestreview-3312721330
View reviewed changes https://github.com/python/mypy/pull/20021/files/07b17f3661f340914e385d14951c60190832ad71
A5rockshttps://github.com/A5rocks
https://github.com/python/mypy/pull/20021#pullrequestreview-3312721330
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/20021
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Oct 8, 2025https://github.com/python/mypy/pull/20021#event-20156583510
https://github.com/sobolevn
Add a test with wrong nameshttps://github.com/python/mypy/pull/20021/commits/c2bbf2748fd48b00f6b967254d8d049d04a6de58
c2bbf27https://github.com/python/mypy/pull/20021/commits/c2bbf2748fd48b00f6b967254d8d049d04a6de58
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Oct 8, 2025 https://github.com/python/mypy/pull/20021#ref-issue-3494215474
Invalid type revealed when type var uses another type var as default #20027 https://github.com/python/mypy/issues/20027
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 8, 2025https://github.com/python/mypy/pull/20021#issuecomment-3380130264
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/20021
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Oct 8, 2025 https://github.com/python/mypy/pull/20021#pullrequestreview-3314603275
View reviewed changes https://github.com/python/mypy/pull/20021/files/c2bbf2748fd48b00f6b967254d8d049d04a6de58
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
77b4cfbhttps://github.com/python/mypy/commit/77b4cfb167b2ef837eddccaf338b3b52e6cf4ba5
Oct 8, 2025https://github.com/python/mypy/pull/20021#event-20173356804
Please reload this pagehttps://github.com/python/mypy/pull/20021
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
October 8, 2025 22:23https://github.com/python/mypy/pull/20021#event-20173357054
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Nov 6, 2025 https://github.com/python/mypy/pull/20021#ref-issue-3593250909
PEP 696: Support earlier type param as default value #20190 https://github.com/python/mypy/issues/20190
https://github.com/yobuntu
yobuntuhttps://github.com/yobuntu
Sep 1, 2026 https://github.com/python/mypy/pull/20021#ref-issue-5314032482
PEP 695: type parameter bound referencing an earlier type parameter in the same list fails with "Name ... is not defined" #21922 https://github.com/python/mypy/issues/21922
https://github.co/hiddenchars
https://github.com/python/mypy/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F20021
https://github.com/ilevkivskyi
ilevkivskyi https://github.com/ilevkivskyi
https://github.com/python/mypy/pull/20021/files/c2bbf2748fd48b00f6b967254d8d049d04a6de58
https://github.com/A5rocks
A5rocks https://github.com/A5rocks
https://github.com/python/mypy/pull/20021/files/07b17f3661f340914e385d14951c60190832ad71
Please reload this pagehttps://github.com/python/mypy/pull/20021
[name-defined] when PEP-696 type var uses another type var as default https://github.com/python/mypy/issues/20020
Please reload this pagehttps://github.com/python/mypy/pull/20021
https://github.com/sobolevn
https://github.com/ilevkivskyi
https://github.com/A5rocks
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.