René's URL Explorer Experiment


Title: bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing by Fidget-Spinner · Pull Request #23702 · python/cpython · GitHub

Open Graph Title: bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing by Fidget-Spinner · Pull Request #23702 · python/cpython

X Title: bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing by Fidget-Spinner · Pull Request #23702 · python/cpython

Description: Changes: Add ParamSpec and Concatenate to typing. Allow both in Callable Allow ParamSpec in Generic Treat ParamSpec as a TypeVar (add them to __parameters__ ) in: typing generics types.GenericAlias Generics parameterized with ParamSpec and subscripted with lists should cast those lists to tuple: typing.Generic types.GenericAlias Tests for ParamSpec Test specified use cases with typing.Callable. Test specified use cases with collections.abc.Callable. Test user defined generics TypeVar like substitution Tests for Concatenate Loosened Generic and GenericAlias type checks to allow for nearly anything. Documentation will be another patch. https://bugs.python.org/issue41559

Open Graph Description: Changes: Add ParamSpec and Concatenate to typing. Allow both in Callable Allow ParamSpec in Generic Treat ParamSpec as a TypeVar (add them to __parameters__ ) in: typing generics types.Gen...

X Description: Changes: Add ParamSpec and Concatenate to typing. Allow both in Callable Allow ParamSpec in Generic Treat ParamSpec as a TypeVar (add them to __parameters__ ) in: typing generics types.Gen...

Opengraph URL: https://github.com/python/cpython/pull/23702

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a783e071-3665-bf8e-e6e4-c3782802c393
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9DD4:2BBD61:1DC8557:2772231:696AFD39
html-safe-nonce4dbc472155d88c34fb07df389fd74040f2904aae3ab49428bc50195a7344e7e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REQ0OjJCQkQ2MToxREM4NTU3OjI3NzIyMzE6Njk2QUZEMzkiLCJ2aXNpdG9yX2lkIjoiNzgyOTI5Mzc4OTcwMjk3ODg3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf38bce016d255341336f9003feb413eaac169d040a91cf9cb0174c1cf1b19642
hovercard-subject-tagpull_request:534603190
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/23702/files
twitter:imagehttps://avatars.githubusercontent.com/u/28750310?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/28750310?s=400&v=4
og:image:altChanges: Add ParamSpec and Concatenate to typing. Allow both in Callable Allow ParamSpec in Generic Treat ParamSpec as a TypeVar (add them to __parameters__ ) in: typing generics types.Gen...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/23702/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F23702%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F23702%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/23702/files
Reloadhttps://github.com/python/cpython/pull/23702/files
Reloadhttps://github.com/python/cpython/pull/23702/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
gvanrossumhttps://github.com/gvanrossum
python:masterhttps://github.com/python/cpython/tree/master
Fidget-Spinner:pep612https://github.com/Fidget-Spinner/cpython/tree/pep612
Conversation 49 https://github.com/python/cpython/pull/23702
Commits 27 https://github.com/python/cpython/pull/23702/commits
Checks 0 https://github.com/python/cpython/pull/23702/checks
Files changed https://github.com/python/cpython/pull/23702/files
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
bpo-41559: Implement PEP 612 - Add ParamSpec and Concatenate to typing https://github.com/python/cpython/pull/23702/files#top
Show all changes 27 commits https://github.com/python/cpython/pull/23702/files
219b4ee Add ParamSpec and Concatenate Fidget-Spinner Dec 8, 2020 https://github.com/python/cpython/pull/23702/commits/219b4ee5f98f5293e75024103f2f9d8400f577e2
a1c0d0a support ParamSpec in generics Fidget-Spinner Dec 8, 2020 https://github.com/python/cpython/pull/23702/commits/a1c0d0ae1f12d3adaeb9a4209b030d959b576e26
7b3beab Add typing tests, disallow Concatenate in other types Fidget-Spinner Dec 9, 2020 https://github.com/python/cpython/pull/23702/commits/7b3beabd466d648bbda0fb386c506f91114a553f
5dd3b44 Add news Fidget-Spinner Dec 9, 2020 https://github.com/python/cpython/pull/23702/commits/5dd3b4480baffa25c993a78d85c8e78bb366a50b
59c0b20 Address some of Guido's review comments Fidget-Spinner Dec 10, 2020 https://github.com/python/cpython/pull/23702/commits/59c0b20eb2c6158807a03b17d8e6677c3c73e02b
4c381b3 remove extraneous empty lines Fidget-Spinner Dec 10, 2020 https://github.com/python/cpython/pull/23702/commits/4c381b36ea12aaf5d221677f4fe4982b15c608f3
b36b62d Support ParamSpec in __parameters__ of typing and builtin GenericAlias Fidget-Spinner Dec 10, 2020 https://github.com/python/cpython/pull/23702/commits/b36b62dc46e859b8afa836ca1a8ed15114c3f7a4
d09d088 add tests for user defined generics Fidget-Spinner Dec 10, 2020 https://github.com/python/cpython/pull/23702/commits/d09d0881a33d4779ba91eab78284c52a52ffa24b
0a19f34 Merge remote-tracking branch 'upstream/master' into pep612 Fidget-Spinner Dec 14, 2020 https://github.com/python/cpython/pull/23702/commits/0a19f34a323211157c27979e64ee6c580bba5a0a
9727e2a cast list to tuple done, loosened type checks for Generic Fidget-Spinner Dec 14, 2020 https://github.com/python/cpython/pull/23702/commits/9727e2af972fb6c1996a4df78d814284c01b25a3
cc7fc1c loosen generics, allow typevar-like subst, flatten out args if Callable Fidget-Spinner Dec 15, 2020 https://github.com/python/cpython/pull/23702/commits/cc7fc1c44e934566550963e5e25b968e8aaaa78e
3e67f23 fix whitespace issue, cast list to tuple for types.GenericAlias Fidget-Spinner Dec 15, 2020 https://github.com/python/cpython/pull/23702/commits/3e67f23b58ec0b6f3ad75e5052f00dd54e4f7b3a
d9baa1a convert list to tuples if substituting paramspecs in types.GenericAlias Fidget-Spinner Dec 16, 2020 https://github.com/python/cpython/pull/23702/commits/d9baa1ab1d07afbc0adad7b9a212b91117ac93e2
c4155b6 done! flattened __args__ in substitutions for collections.abc.Callable Fidget-Spinner Dec 16, 2020 https://github.com/python/cpython/pull/23702/commits/c4155b63c55530a23169ff82964740c21336611e
2dbf861 fix repr problems, add repr tests Fidget-Spinner Dec 16, 2020 https://github.com/python/cpython/pull/23702/commits/2dbf86145caaa9947c4db82e26e375f5041e793c
87c2d19 Add another test for multiple chaining Fidget-Spinner Dec 16, 2020 https://github.com/python/cpython/pull/23702/commits/87c2d192ad6289fa3ee1d13f751f489ffeb01582
2b09de6 fix typo Fidget-Spinner Dec 16, 2020 https://github.com/python/cpython/pull/23702/commits/2b09de653150b45910da43474922ccd8a41caafe
d980702 Clean up some comments Fidget-Spinner Dec 17, 2020 https://github.com/python/cpython/pull/23702/commits/d98070238ff1c2cf723ed2a766c6ba90bc992b74
45f7894 Merge remote-tracking branch 'upstream/master' into pep612 Fidget-Spinner Dec 22, 2020 https://github.com/python/cpython/pull/23702/commits/45f7894146f923d42f435d290a658ae646ce85ca
d6f777c remove stray whitespace Fidget-Spinner Dec 22, 2020 https://github.com/python/cpython/pull/23702/commits/d6f777c0305b04466f158d6d23c9c72761ac26cf
9a8176b Address nearly all of Guido's reviews Fidget-Spinner Dec 23, 2020 https://github.com/python/cpython/pull/23702/commits/9a8176b7c3af3884242748cf793b7cc9ed4d34b7
fa06838 more reviews; fix some docstrings, clean up code, cast list to tuple … Fidget-Spinner Dec 23, 2020 https://github.com/python/cpython/pull/23702/commits/fa06838ce83cf72aecc1db5e3fb4fe59f3925b70
b8672cd remove uneeded tests copied over from typevar Fidget-Spinner Dec 23, 2020 https://github.com/python/cpython/pull/23702/commits/b8672cdc0346f35a4217c2c6d2ebb9af0f420a6e
51a463c remove unused variable Fidget-Spinner Dec 23, 2020 https://github.com/python/cpython/pull/23702/commits/51a463cfbaea2ab4ce29d14a1a2505b35e3d40e6
6d5b754 Merge remote-tracking branch 'upstream/master' into pep612 Fidget-Spinner Dec 24, 2020 https://github.com/python/cpython/pull/23702/commits/6d5b75481dbd91a4c3609c0736f6b6978691b93c
c05d5d7 merge length checking into _has_special_args too Fidget-Spinner Dec 24, 2020 https://github.com/python/cpython/pull/23702/commits/c05d5d7a0a4e9ab91a7610c69f3ee0c86ccce78c
c49ba30 Update Lib/_collections_abc.py gvanrossum Dec 24, 2020 https://github.com/python/cpython/pull/23702/commits/c49ba30c2e6b5f6d1c7ec0d5012bfdda51ebcd16
Clear filters https://github.com/python/cpython/pull/23702/files
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
_collections_abc.py https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
test_genericalias.py https://github.com/python/cpython/pull/23702/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
test_typing.py https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
typing.py https://github.com/python/cpython/pull/23702/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887
2020-12-10-00-09-40.bpo-41559.1l4yjP.rst https://github.com/python/cpython/pull/23702/files#diff-a8a5d7133b7d3ece9606eee708b1433d2a78ea3fc71e4ed86ec1367af165cd3a
genericaliasobject.c https://github.com/python/cpython/pull/23702/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
Lib/_collections_abc.pyhttps://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
View file https://github.com/Fidget-Spinner/cpython/blob/c49ba30c2e6b5f6d1c7ec0d5012bfdda51ebcd16/Lib/_collections_abc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/23702/{{ revealButtonHref }}
https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545
Lib/test/test_genericalias.pyhttps://github.com/python/cpython/pull/23702/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
View file https://github.com/Fidget-Spinner/cpython/blob/c49ba30c2e6b5f6d1c7ec0d5012bfdda51ebcd16/Lib/test/test_genericalias.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/23702/{{ revealButtonHref }}
https://github.com/python/cpython/pull/23702/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
Lib/test/test_typing.pyhttps://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
View file https://github.com/Fidget-Spinner/cpython/blob/c49ba30c2e6b5f6d1c7ec0d5012bfdda51ebcd16/Lib/test/test_typing.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/23702/{{ revealButtonHref }}
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
https://github.com/python/cpython/pull/23702/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d
Please reload this pagehttps://github.com/python/cpython/pull/23702/files
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.