René's URL Explorer Experiment


Title: Adds support for `NamedTuple` subtyping by sobolevn · Pull Request #11162 · python/mypy · GitHub

Open Graph Title: Adds support for `NamedTuple` subtyping by sobolevn · Pull Request #11162 · python/mypy

X Title: Adds support for `NamedTuple` subtyping by sobolevn · Pull Request #11162 · python/mypy

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

Open Graph Description: Closes #11160

X Description: Closes #11160

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

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:f8fed1b3-2ff4-02e1-a906-41eed38739ed
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDEF4:1DA187:26959E6:32537ED:6AFFFA9B
html-safe-nonce8bf26c28948f0a033c9da785e45f625fe2c76b44b06275c205c60f59efe9c9ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUY0OjFEQTE4NzoyNjk1OUU2OjMyNTM3RUQ6NkFGRkZBOUIiLCJ2aXNpdG9yX2lkIjoiNTY5NDgyMTkzNDEzMTMxMzMwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacddce212231e81674720fc988a663a27986b162a7bf71af5185f2ff1098d0518f
hovercard-subject-tagpull_request:739270726
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/11162/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/eef5e2baacccc4cc8737c4ab9779404522797d21fb4ce66d037e26bcc124a387/python/mypy/pull/11162
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eef5e2baacccc4cc8737c4ab9779404522797d21fb4ce66d037e26bcc124a387/python/mypy/pull/11162
og:image:altCloses #11160
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesobolevn
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
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
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/11162#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F11162
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%2F11162
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/11162
Reloadhttps://github.com/python/mypy/pull/11162
Reloadhttps://github.com/python/mypy/pull/11162
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
JukkaLhttps://github.com/JukkaL
python:masterhttps://github.com/python/mypy/tree/master
Conversationhttps://github.com/python/mypy/pull/11162
Commits6 (6)https://github.com/python/mypy/pull/11162/commits
Checkshttps://github.com/python/mypy/pull/11162/checks
Files changedhttps://github.com/python/mypy/pull/11162/files
Adds support for NamedTuple subtypinghttps://github.com/python/mypy/pull/11162#top
JukkaLhttps://github.com/JukkaL
python:masterhttps://github.com/python/mypy/tree/master
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Sep 21, 2021https://github.com/python/mypy/pull/11162#issue-1002928550
#11160https://github.com/python/mypy/issues/11160
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
Adds support forhttps://github.com/python/mypy/pull/11162/commits/7afe1309023b3b547f0abe0f58aff71a16ad1df3
NamedTuplehttps://github.com/python/mypy/pull/11162/commits/7afe1309023b3b547f0abe0f58aff71a16ad1df3
subtyping, refshttps://github.com/python/mypy/pull/11162/commits/7afe1309023b3b547f0abe0f58aff71a16ad1df3
#11160https://github.com/python/mypy/issues/11160
7afe130https://github.com/python/mypy/pull/11162/commits/7afe1309023b3b547f0abe0f58aff71a16ad1df3
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Sep 21, 2021 https://github.com/python/mypy/pull/11162#pullrequestreview-760333485
View reviewed changes https://github.com/python/mypy/pull/11162/files/7afe1309023b3b547f0abe0f58aff71a16ad1df3
test-data/unit/check-namedtuple.testhttps://github.com/python/mypy/pull/11162/files/7afe1309023b3b547f0abe0f58aff71a16ad1df3#diff-1e9c665830a34676d60b21b5d56768c9d545fbc3b67ba76c9e3b79a87281dd5c
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
Adds ._source attribute to NamedTuple typehttps://github.com/python/mypy/pull/11162/commits/c0976b4ef52c88747c30dd43dbb0bdb668516901
c0976b4https://github.com/python/mypy/pull/11162/commits/c0976b4ef52c88747c30dd43dbb0bdb668516901
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Sep 24, 2021 https://github.com/python/mypy/pull/11162#pullrequestreview-763061807
View reviewed changes https://github.com/python/mypy/pull/11162/files/c0976b4ef52c88747c30dd43dbb0bdb668516901
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/11162#pullrequestreview-763061807
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
Adds more tests and docshttps://github.com/python/mypy/pull/11162/commits/5fb7a881f048fd752433f1feacdeac8eb6d714b1
5fb7a88https://github.com/python/mypy/pull/11162/commits/5fb7a881f048fd752433f1feacdeac8eb6d714b1
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Sep 24, 2021https://github.com/python/mypy/pull/11162#issuecomment-926656464
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
Fixes tests output locationhttps://github.com/python/mypy/pull/11162/commits/11bd1aee48804d620ffac21c43b6359b7fd98838
11bd1aehttps://github.com/python/mypy/pull/11162/commits/11bd1aee48804d620ffac21c43b6359b7fd98838
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Sep 27, 2021https://github.com/python/mypy/pull/11162#issuecomment-927914143
#11047https://github.com/python/mypy/issues/11047
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Sep 27, 2021 https://github.com/python/mypy/pull/11162#ref-pullrequest-1008272464
WIP: adds better namedtuple semantic analyzer #11206 https://github.com/python/mypy/pull/11206
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Nov 4, 2021 https://github.com/python/mypy/pull/11162#ref-issue-228861198
NamedTupleInterface python/typing#431 https://github.com/python/typing/issues/431
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Nov 4, 2021 https://github.com/python/mypy/pull/11162#pullrequestreview-797827582
View reviewed changes https://github.com/python/mypy/pull/11162/files/11bd1aee48804d620ffac21c43b6359b7fd98838
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/11162#pullrequestreview-797827582
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/11162
docs/source/kinds_of_types.rsthttps://github.com/python/mypy/pull/11162/files/11bd1aee48804d620ffac21c43b6359b7fd98838#diff-ecca61fc614eaf632d42d6b116685cabd4949fe3461c0821cc05514d63eb1e97
Please reload this pagehttps://github.com/python/mypy/pull/11162
test-data/unit/check-namedtuple.testhttps://github.com/python/mypy/pull/11162/files/11bd1aee48804d620ffac21c43b6359b7fd98838#diff-1e9c665830a34676d60b21b5d56768c9d545fbc3b67ba76c9e3b79a87281dd5c
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
Improves tests and docshttps://github.com/python/mypy/pull/11162/commits/8c20b7cfdb4630e1d39e6e4890aab10fcf4f5fd3
8c20b7chttps://github.com/python/mypy/pull/11162/commits/8c20b7cfdb4630e1d39e6e4890aab10fcf4f5fd3
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Nov 4, 2021https://github.com/python/mypy/pull/11162#issuecomment-961126282
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
Fixes tests, add Mapping to new fixturehttps://github.com/python/mypy/pull/11162/commits/137c28be56d303b10c364656b3b721d3e24b0c99
137c28bhttps://github.com/python/mypy/pull/11162/commits/137c28be56d303b10c364656b3b721d3e24b0c99
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Nov 5, 2021 https://github.com/python/mypy/pull/11162#pullrequestreview-798891557
View reviewed changes https://github.com/python/mypy/pull/11162/files/137c28be56d303b10c364656b3b721d3e24b0c99
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/11162#pullrequestreview-798891557
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
fbf2188https://github.com/python/mypy/commit/fbf21882087117135cf4b0a1bfa0c140e538726e
Nov 5, 2021https://github.com/python/mypy/pull/11162#event-5574434050
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Nov 5, 2021https://github.com/python/mypy/pull/11162#issuecomment-961900062
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/11162
tushar-deepsourcehttps://github.com/tushar-deepsource
Jan 20, 2022 https://github.com/python/mypy/pull/11162#ref-commit-f985164
https://github.com/sobolevn
https://github.com/tushar-deepsource
Adds support forhttps://github.com/DeepSourceCorp/mypy/commit/f985164a0228e2a9af8da3bd964cfa9352ed4a6a
NamedTuplehttps://github.com/DeepSourceCorp/mypy/commit/f985164a0228e2a9af8da3bd964cfa9352ed4a6a
subtyping (https://github.com/DeepSourceCorp/mypy/commit/f985164a0228e2a9af8da3bd964cfa9352ed4a6a
python#11162https://github.com/python/mypy/pull/11162
)https://github.com/DeepSourceCorp/mypy/commit/f985164a0228e2a9af8da3bd964cfa9352ed4a6a
f985164https://github.com/DeepSourceCorp/mypy/commit/f985164a0228e2a9af8da3bd964cfa9352ed4a6a
python#11160https://github.com/python/mypy/issues/11160
https://github.com/carljm
carljmhttps://github.com/carljm
Aug 14, 2025 https://github.com/python/mypy/pull/11162#ref-pullrequest-3322302506
[ty] Represent NamedTuple as an opaque special form, not a class astral-sh/ruff#19915 https://github.com/astral-sh/ruff/pull/19915
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%2F11162
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/mypy/pull/11162/files/7afe1309023b3b547f0abe0f58aff71a16ad1df3
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
https://github.com/python/mypy/pull/11162/files/137c28be56d303b10c364656b3b721d3e24b0c99
Please reload this pagehttps://github.com/python/mypy/pull/11162
arg-type error when inheriting from NamedTuple https://github.com/python/mypy/issues/11160
Please reload this pagehttps://github.com/python/mypy/pull/11162
https://github.com/sobolevn
https://github.com/JelleZijlstra
https://github.com/JukkaL
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.