René's URL Explorer Experiment


Title: Fix special cases of kwargs + TypeVarTuple by A5rocks · Pull Request #17512 · python/mypy · GitHub

Open Graph Title: Fix special cases of kwargs + TypeVarTuple by A5rocks · Pull Request #17512 · python/mypy

X Title: Fix special cases of kwargs + TypeVarTuple by A5rocks · Pull Request #17512 · python/mypy

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

Open Graph Description: Fixes #16522. This PR adds special casing for TypeVarTuple inference in the face of kwargs, though I believe the general case requires providing multiple possible constraints (e.g. "constraint...

X Description: Fixes #16522. This PR adds special casing for TypeVarTuple inference in the face of kwargs, though I believe the general case requires providing multiple possible constraints (e.g. "constr...

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

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:e5c3d337-9bdd-86e0-9847-7f6dde305c8c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDEDA:2AD163:214F1E8:2D3BB6B:6B0021CF
html-safe-nonce110af02ac04a724c9c2d4864fb80eaf693c78d0f921ca218e1796081ad142c18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERURBOjJBRDE2MzoyMTRGMUU4OjJEM0JCNkI6NkIwMDIxQ0YiLCJ2aXNpdG9yX2lkIjoiOTQwMTM0MjY2NjE5MDQ0MzAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6a8044cc21821d64e1981d13d26ff8b68e6c2d656b8596270da1bb4b2b68027f
hovercard-subject-tagpull_request:1961510767
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/17512/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/50b8b04bbe81966f4a3f9e809364b308b23d5f09ed0bfe1cff622f271ca14227/python/mypy/pull/17512
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/50b8b04bbe81966f4a3f9e809364b308b23d5f09ed0bfe1cff622f271ca14227/python/mypy/pull/17512
og:image:altFixes #16522. This PR adds special casing for TypeVarTuple inference in the face of kwargs, though I believe the general case requires providing multiple possible constraints (e.g. "constraint...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameA5rocks
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
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
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/17512#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17512
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%2F17512
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/17512
Reloadhttps://github.com/python/mypy/pull/17512
Reloadhttps://github.com/python/mypy/pull/17512
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 requests546 (546)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
A5rockshttps://github.com/A5rocks
python:masterhttps://github.com/python/mypy/tree/master
A5rocks:kwargs-and-tvthttps://github.com/A5rocks/mypy/tree/kwargs-and-tvt
Conversationhttps://github.com/python/mypy/pull/17512
Commits14 (14)https://github.com/python/mypy/pull/17512/commits
Checkshttps://github.com/python/mypy/pull/17512/checks
Files changedhttps://github.com/python/mypy/pull/17512/files
Fix special cases of kwargs + TypeVarTuplehttps://github.com/python/mypy/pull/17512#top
A5rockshttps://github.com/A5rocks
python:masterhttps://github.com/python/mypy/tree/master
A5rocks:kwargs-and-tvthttps://github.com/A5rocks/mypy/tree/kwargs-and-tvt
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Jul 10, 2024https://github.com/python/mypy/pull/17512#issue-2399786304
Please reload this pagehttps://github.com/python/mypy/pull/17512
#16522https://github.com/python/mypy/issues/16522
Callables like operator.call produce arg-type error with callables that take *args: Unpack[Ts] and >= 1 keyword argument #16662https://github.com/python/mypy/issues/16662
Please reload this pagehttps://github.com/python/mypy/pull/17512
A5rockshttps://github.com/A5rocks
June 27, 2024 15:11https://github.com/python/mypy/pull/17512#commits-pushed-51fb484
https://github.com/A5rocks
Start treating erased TypeVarTuple like erased TypeVar or erased Para…https://github.com/python/mypy/pull/17512/commits/51fb484ed329de1cd10c11d8b4d906f0473fa2c6
51fb484https://github.com/python/mypy/pull/17512/commits/51fb484ed329de1cd10c11d8b4d906f0473fa2c6
https://github.com/A5rocks
Add simple case handling of kwargs with typevartupleshttps://github.com/python/mypy/pull/17512/commits/5e554ef4f6017cfdf40e7856f9b41bd66d09e3b3
5e554efhttps://github.com/python/mypy/pull/17512/commits/5e554ef4f6017cfdf40e7856f9b41bd66d09e3b3
https://github.com/A5rocks
Update for lintshttps://github.com/python/mypy/pull/17512/commits/2ebe619df9ed84c410458e3a63f83745758c88c9
2ebe619https://github.com/python/mypy/pull/17512/commits/2ebe619df9ed84c410458e3a63f83745758c88c9
https://github.com/A5rocks
Handle the new Any-tuple somewhere elsehttps://github.com/python/mypy/pull/17512/commits/61c62cf5ee6d59952292f549ef0cbfc0b20753bd
61c62cfhttps://github.com/python/mypy/pull/17512/commits/61c62cf5ee6d59952292f549ef0cbfc0b20753bd
https://github.com/A5rocks
Handle another subtyping case for Any-tuplehttps://github.com/python/mypy/pull/17512/commits/c66fad26b705dce9c44ab9f7e2a12171f71f1b3d
c66fad2https://github.com/python/mypy/pull/17512/commits/c66fad26b705dce9c44ab9f7e2a12171f71f1b3d
https://github.com/A5rocks
Final work on Any-tuplehttps://github.com/python/mypy/pull/17512/commits/7fa032da590fce377920124dca4b607934af0425
7fa032dhttps://github.com/python/mypy/pull/17512/commits/7fa032da590fce377920124dca4b607934af0425
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Jul 10, 2024 https://github.com/python/mypy/pull/17512#pullrequestreview-2168069521
View reviewed changes https://github.com/python/mypy/pull/17512/files/7fa032da590fce377920124dca4b607934af0425
mypy/test/testtypes.pyhttps://github.com/python/mypy/pull/17512/files/7fa032da590fce377920124dca4b607934af0425#diff-7b0a8fc4d41aa3ceec983af052a5e15380d407ac85a01671b776a4348635f0e5
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Jul 10, 2024https://github.com/python/mypy/pull/17512#issuecomment-2219600262
@ilevkivskyihttps://github.com/ilevkivskyi
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Jul 10, 2024https://github.com/python/mypy/pull/17512#event-13450174421
https://github.com/A5rocks
Merge branch 'master' into kwargs-and-tvthttps://github.com/python/mypy/pull/17512/commits/c6c9feec7c0d80475c0d4a746df88c8876c515e6
c6c9feehttps://github.com/python/mypy/pull/17512/commits/c6c9feec7c0d80475c0d4a746df88c8876c515e6
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17512
https://github.com/A5rocks
It is ok if arg is optionalhttps://github.com/python/mypy/pull/17512/commits/a1048e20a731967219a5fb542ce7cd3e388e9ad3
a1048e2https://github.com/python/mypy/pull/17512/commits/a1048e20a731967219a5fb542ce7cd3e388e9ad3
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17512
https://github.com/A5rocks
Get rid of Any-tuplehttps://github.com/python/mypy/pull/17512/commits/06abecd6aabf9ce57861bfb163dd0203b717453b
06abecdhttps://github.com/python/mypy/pull/17512/commits/06abecd6aabf9ce57861bfb163dd0203b717453b
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Aug 27, 2024https://github.com/python/mypy/pull/17512#event-14036052474
A5rockshttps://github.com/A5rocks
August 28, 2024 07:33https://github.com/python/mypy/pull/17512#commits-pushed-16d4dcf
https://github.com/A5rocks
Fix isinstance argumenthttps://github.com/python/mypy/pull/17512/commits/16d4dcff68d2804ce1c19ea62ebe7c1cd5dd9e55
16d4dcfhttps://github.com/python/mypy/pull/17512/commits/16d4dcff68d2804ce1c19ea62ebe7c1cd5dd9e55
https://github.com/A5rocks
Merge remote-tracking branch 'upstream/master' into kwargs-and-tvthttps://github.com/python/mypy/pull/17512/commits/974bcb0e41466ccbefd20fc7af00e2d677088467
974bcb0https://github.com/python/mypy/pull/17512/commits/974bcb0e41466ccbefd20fc7af00e2d677088467
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17512
https://github.com/A5rocks
Remove erroneous commenthttps://github.com/python/mypy/pull/17512/commits/9f5509c4f4ebc49b050e2b35cc5badf4344cf900
9f5509chttps://github.com/python/mypy/pull/17512/commits/9f5509c4f4ebc49b050e2b35cc5badf4344cf900
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F17512
https://github.com/jakkdl
jakkdlhttps://github.com/jakkdl
Sep 17, 2024https://github.com/python/mypy/pull/17512#issuecomment-2355848730
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
upnext https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Aupnext
Sep 24, 2024https://github.com/python/mypy/pull/17512#event-14375740365
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Sep 27, 2024 https://github.com/python/mypy/pull/17512#ref-pullrequest-2553213135
Fix subtyping of callables with Unpack #17843 https://github.com/python/mypy/pull/17843
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Sep 27, 2024https://github.com/python/mypy/pull/17512#issuecomment-2379553755
Please reload this pagehttps://github.com/python/mypy/pull/17512
#17843https://github.com/python/mypy/pull/17843
Please reload this pagehttps://github.com/python/mypy/pull/17512
A5rockshttps://github.com/A5rocks
September 28, 2024 01:12https://github.com/python/mypy/pull/17512#commits-pushed-220da59
https://github.com/A5rocks
Merge branch 'master' into kwargs-and-tvthttps://github.com/python/mypy/pull/17512/commits/220da59d357f63a6c2dc994e37477a165c868038
220da59https://github.com/python/mypy/pull/17512/commits/220da59d357f63a6c2dc994e37477a165c868038
https://github.com/A5rocks
Copy over correctness changeshttps://github.com/python/mypy/pull/17512/commits/08748f2e9c97a788b0ad7a89987c617ff414a6f6
08748f2https://github.com/python/mypy/pull/17512/commits/08748f2e9c97a788b0ad7a89987c617ff414a6f6
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 27, 2024https://github.com/python/mypy/pull/17512#issuecomment-2379666472
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/jakkdl
jakkdlhttps://github.com/jakkdl
Oct 29, 2024 https://github.com/python/mypy/pull/17512#ref-pullrequest-2616358226
Enable mypy's disallow_any_explicit flag. python-trio/trio#3121 https://github.com/python-trio/trio/pull/3121
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Jan 2, 2025 https://github.com/python/mypy/pull/17512#ref-pullrequest-2765539583
Ensure subtyping works with erased typevartuples in callables #18408 https://github.com/python/mypy/pull/18408
https://github.com/jakkdl
jakkdlhttps://github.com/jakkdl
Mar 31, 2025https://github.com/python/mypy/pull/17512#issuecomment-2765584521
@A5rockshttps://github.com/A5rocks
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Apr 23, 2025 https://github.com/python/mypy/pull/17512#ref-pullrequest-3014770527
Infer type var tuple contents in more situations #18958 https://github.com/python/mypy/pull/18958
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Apr 23, 2025https://github.com/python/mypy/pull/17512#issuecomment-2825017101
#18958https://github.com/python/mypy/pull/18958
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
Apr 23, 2025https://github.com/python/mypy/pull/17512#event-17375437401
https://github.com/A5rocks
A5rockshttps://github.com/A5rocks
October 22, 2025 01:55https://github.com/python/mypy/pull/17512#event-20418777427
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%2F17512
Please reload this pagehttps://github.com/python/mypy/pull/17512
upnext https://github.com/python/mypy/issues?q=state%3Aopen%20label%3Aupnext
Callables like operator.call produce arg-type error with callables that take *args: Unpack[Ts] and >= 1 keyword argument https://github.com/python/mypy/issues/16662
Never inferred in complex situation with variadic callable protocol https://github.com/python/mypy/issues/16522
Please reload this pagehttps://github.com/python/mypy/pull/17512
https://github.com/A5rocks
https://github.com/jakkdl
https://github.com/hauntsaninja
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.