René's URL Explorer Experiment


Title: Infer ParamSpec constraint from arguments by ilevkivskyi · Pull Request #15896 · python/mypy · GitHub

Open Graph Title: Infer ParamSpec constraint from arguments by ilevkivskyi · Pull Request #15896 · python/mypy

X Title: Infer ParamSpec constraint from arguments by ilevkivskyi · Pull Request #15896 · python/mypy

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

Open Graph Description: Fixes #12278 Fixes #13191 (more tricky nested use cases with optional/keyword args still don't work, but they are quite tricky to fix and may selectively fixed later) This unfortunately require...

X Description: Fixes #12278 Fixes #13191 (more tricky nested use cases with optional/keyword args still don't work, but they are quite tricky to fix and may selectively fixed later) This unfortunately req...

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

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:612f0af8-37a4-efc4-6f18-06fbd02b8ef6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA4BA:12476C:1F1BBFA:290568B:6B0037CE
html-safe-noncec6bc92d6120addb9d93c89eea82b2cc1e46231e75c71a161e519f8fc78865ca2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEJBOjEyNDc2QzoxRjFCQkZBOjI5MDU2OEI6NkIwMDM3Q0UiLCJ2aXNpdG9yX2lkIjoiMzk2NTI5OTk5MTk5OTY5MDcwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac15d32586a31793720c232a23c133ee0f904a90e4b5e2d7b007b29a61ea36e164
hovercard-subject-tagpull_request:1478768259
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/15896/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/13b3d0725a6da6743945f63a1f8b6988e9b78c02952547fcb20d7d0ae919254f/python/mypy/pull/15896
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/13b3d0725a6da6743945f63a1f8b6988e9b78c02952547fcb20d7d0ae919254f/python/mypy/pull/15896
og:image:altFixes #12278 Fixes #13191 (more tricky nested use cases with optional/keyword args still don't work, but they are quite tricky to fix and may selectively fixed later) This unfortunately require...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameilevkivskyi
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/mypy/pull/15896#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F15896
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%2F15896
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/15896
Reloadhttps://github.com/python/mypy/pull/15896
Reloadhttps://github.com/python/mypy/pull/15896
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 requests545 (545)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
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
ilevkivskyi:fix-paramapec-inferencehttps://github.com/ilevkivskyi/mypy/tree/fix-paramapec-inference
Conversationhttps://github.com/python/mypy/pull/15896
Commits7 (7)https://github.com/python/mypy/pull/15896/commits
Checkshttps://github.com/python/mypy/pull/15896/checks
Files changedhttps://github.com/python/mypy/pull/15896/files
Infer ParamSpec constraint from argumentshttps://github.com/python/mypy/pull/15896#top
ilevkivskyihttps://github.com/ilevkivskyi
python:masterhttps://github.com/python/mypy/tree/master
ilevkivskyi:fix-paramapec-inferencehttps://github.com/ilevkivskyi/mypy/tree/fix-paramapec-inference
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Aug 17, 2023https://github.com/python/mypy/pull/15896#issue-1854694320
Please reload this pagehttps://github.com/python/mypy/pull/15896
#12278https://github.com/python/mypy/issues/12278
#13191https://github.com/python/mypy/issues/13191
Please reload this pagehttps://github.com/python/mypy/pull/15896
ilevkivskyihttps://github.com/ilevkivskyi
August 17, 2023 00:18https://github.com/python/mypy/pull/15896#commits-pushed-67a8cc9
https://github.com/ilevkivskyi
Infer ParamSpec constraint from argumentshttps://github.com/python/mypy/pull/15896/commits/67a8cc99198007d70a439148d2124814f08693dc
67a8cc9https://github.com/python/mypy/pull/15896/commits/67a8cc99198007d70a439148d2124814f08693dc
https://github.com/ilevkivskyi
Handle corner case; update some testshttps://github.com/python/mypy/pull/15896/commits/dacbb5fb3842c470683f44d7a6ba95f6f5d02f41
dacbb5fhttps://github.com/python/mypy/pull/15896/commits/dacbb5fb3842c470683f44d7a6ba95f6f5d02f41
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
JukkaLhttps://github.com/JukkaL
jhancehttps://github.com/jhance
August 17, 2023 10:09https://github.com/python/mypy/pull/15896#event-10117589307
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F15896
https://github.com/ilevkivskyi
Try better special-casinghttps://github.com/python/mypy/pull/15896/commits/2485aa59728c515bea36a7e2051511ada9e39718
2485aa5https://github.com/python/mypy/pull/15896/commits/2485aa59728c515bea36a7e2051511ada9e39718
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Aug 17, 2023https://github.com/python/mypy/pull/15896#issuecomment-1682308748
Please reload this pagehttps://github.com/python/mypy/pull/15896
https://github.com/ilevkivskyi
Undo not needed changeshttps://github.com/python/mypy/pull/15896/commits/53382a7153f9fc3a246248ce0bb0600b7ffe8ff5
53382a7https://github.com/python/mypy/pull/15896/commits/53382a7153f9fc3a246248ce0bb0600b7ffe8ff5
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F15896
https://github.com/ilevkivskyi
Simplify logic; try including return constraintshttps://github.com/python/mypy/pull/15896/commits/dfaa4f9fc1902ef335a7e3ed6818f3d3f14e77a8
dfaa4f9https://github.com/python/mypy/pull/15896/commits/dfaa4f9fc1902ef335a7e3ed6818f3d3f14e77a8
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F15896
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Aug 18, 2023 https://github.com/python/mypy/pull/15896#ref-issue-1157551947
TypeVar inside ParamSpec doesn't get inferred #12278 https://github.com/python/mypy/issues/12278
https://github.com/ilevkivskyi
Merge remote-tracking branch 'upstream/master' into fix-paramapec-inf…https://github.com/python/mypy/pull/15896/commits/40fe372337b340a2a426ff0dead0fcefc502d73c
40fe372https://github.com/python/mypy/pull/15896/commits/40fe372337b340a2a426ff0dead0fcefc502d73c
https://github.com/apps/github-actions
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fpull%2F15896
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Aug 18, 2023https://github.com/python/mypy/pull/15896#issuecomment-1684210158
Please reload this pagehttps://github.com/python/mypy/pull/15896
Please reload this pagehttps://github.com/python/mypy/pull/15896
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Aug 21, 2023https://github.com/python/mypy/pull/15896#issuecomment-1687069747
@JukkaLhttps://github.com/JukkaL
Please reload this pagehttps://github.com/python/mypy/pull/15896
https://github.com/JukkaL
JukkaLhttps://github.com/JukkaL
Aug 25, 2023 https://github.com/python/mypy/pull/15896#pullrequestreview-1595851294
View reviewed changes https://github.com/python/mypy/pull/15896/files/40fe372337b340a2a426ff0dead0fcefc502d73c
JukkaLhttps://github.com/JukkaL
https://github.com/python/mypy/pull/15896#pullrequestreview-1595851294
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/15896
test-data/unit/check-parameter-specification.testhttps://github.com/python/mypy/pull/15896/files/40fe372337b340a2a426ff0dead0fcefc502d73c#diff-2e10fe01ef2dee920c159f4016e58f4e404778ee98b61ace3a757ca0ed69a811
JukkaLhttps://github.com/JukkaL
Aug 25, 2023https://github.com/python/mypy/pull/15896#discussion_r1305735164
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/15896
ilevkivskyihttps://github.com/ilevkivskyi
Aug 25, 2023https://github.com/python/mypy/pull/15896#discussion_r1306031959
Please reload this pagehttps://github.com/python/mypy/pull/15896
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/15896
ilevkivskyihttps://github.com/ilevkivskyi
Aug 25, 2023https://github.com/python/mypy/pull/15896#discussion_r1306034360
Please reload this pagehttps://github.com/python/mypy/pull/15896
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/15896
ilevkivskyihttps://github.com/ilevkivskyi
Aug 25, 2023https://github.com/python/mypy/pull/15896#discussion_r1306116105
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/15896
ilevkivskyihttps://github.com/ilevkivskyi
Aug 25, 2023https://github.com/python/mypy/pull/15896#discussion_r1306131598
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/mypy/pull/15896
https://github.com/ilevkivskyi
Add more testshttps://github.com/python/mypy/pull/15896/commits/90906619e2fe70911b679b01ade0e49aef7da11f
9090661https://github.com/python/mypy/pull/15896/commits/90906619e2fe70911b679b01ade0e49aef7da11f
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 25, 2023https://github.com/python/mypy/pull/15896#issuecomment-1693924068
mypy_primerhttps://github.com/hauntsaninja/mypy_primer
Please reload this pagehttps://github.com/python/mypy/pull/15896
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
7f65cc7https://github.com/python/mypy/commit/7f65cc7570eaa4206ae086680e1c1d0489897efa
Aug 25, 2023https://github.com/python/mypy/pull/15896#event-10197315847
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
August 25, 2023 21:30https://github.com/python/mypy/pull/15896#event-10197316132
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Aug 26, 2023 https://github.com/python/mypy/pull/15896#ref-issue-1507115730
Callables like operator.call produce arg-type error with generic or overloaded functions #14337 https://github.com/python/mypy/issues/14337
https://github.com/ilevkivskyi
ilevkivskyihttps://github.com/ilevkivskyi
Nov 4, 2023 https://github.com/python/mypy/pull/15896#ref-issue-1977298019
issue with ParamSpec and Callable of Callables #16405 https://github.com/python/mypy/issues/16405
cg505https://github.com/cg505
Sep 10, 2025 https://github.com/python/mypy/pull/15896#ref-commit-d0d726f
https://github.com/cg505
[dev] update mypy to 1.16.1https://github.com/cg505/skypilot/commit/d0d726f4b250f96f56f8d0fc8f2bd76ecdd713a4
d0d726fhttps://github.com/cg505/skypilot/commit/d0d726f4b250f96f56f8d0fc8f2bd76ecdd713a4
python/mypy#15896https://github.com/python/mypy/pull/15896
https://github.com/cg505
cg505https://github.com/cg505
Sep 10, 2025 https://github.com/python/mypy/pull/15896#ref-pullrequest-3400514668
[dev] update mypy to 1.14.1 skypilot-org/skypilot#7101 https://github.com/skypilot-org/skypilot/pull/7101
cg505https://github.com/cg505
Sep 10, 2025 https://github.com/python/mypy/pull/15896#ref-commit-d512e73
https://github.com/cg505
[dev] update mypy to 1.14.1 (https://github.com/skypilot-org/skypilot/commit/d512e73176362bc36b41cafdfe21e87bbe8f6c59
#7101https://github.com/skypilot-org/skypilot/pull/7101
)https://github.com/skypilot-org/skypilot/commit/d512e73176362bc36b41cafdfe21e87bbe8f6c59
d512e73https://github.com/skypilot-org/skypilot/commit/d512e73176362bc36b41cafdfe21e87bbe8f6c59
python/mypy#15896https://github.com/python/mypy/pull/15896
https://github.com/sterliakov
sterliakovhttps://github.com/sterliakov
Oct 22, 2025 https://github.com/python/mypy/pull/15896#ref-pullrequest-3538775632
Fix Not ImplementedError crash in meet.py for UnpackType #20101 https://github.com/python/mypy/pull/20101
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%2F15896
https://github.com/JukkaL
JukkaL https://github.com/JukkaL
https://github.com/python/mypy/pull/15896/files/40fe372337b340a2a426ff0dead0fcefc502d73c
https://github.com/jhance
jhance https://github.com/jhance
Please reload this pagehttps://github.com/python/mypy/pull/15896
Recursive use of ParamSpec https://github.com/python/mypy/issues/13191
TypeVar inside ParamSpec doesn't get inferred https://github.com/python/mypy/issues/12278
Please reload this pagehttps://github.com/python/mypy/pull/15896
https://github.com/ilevkivskyi
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.