| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a783e071-3665-bf8e-e6e4-c3782802c393 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9DD4:2BBD61:1DC8557:2772231:696AFD39 |
| html-safe-nonce | 4dbc472155d88c34fb07df389fd74040f2904aae3ab49428bc50195a7344e7e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REQ0OjJCQkQ2MToxREM4NTU3OjI3NzIyMzE6Njk2QUZEMzkiLCJ2aXNpdG9yX2lkIjoiNzgyOTI5Mzc4OTcwMjk3ODg3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f38bce016d255341336f9003feb413eaac169d040a91cf9cb0174c1cf1b19642 |
| hovercard-subject-tag | pull_request:534603190 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/23702/files |
| twitter:image | https://avatars.githubusercontent.com/u/28750310?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/28750310?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/23702/files |
| Reload | https://github.com/python/cpython/pull/23702/files |
| Reload | https://github.com/python/cpython/pull/23702/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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 page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| gvanrossum | https://github.com/gvanrossum |
| python:master | https://github.com/python/cpython/tree/master |
| Fidget-Spinner:pep612 | https://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 page | https://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 page | https://github.com/python/cpython/pull/23702/files |
| Please reload this page | https://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.py | https://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 page | https://github.com/python/cpython/pull/23702/files |
|
| https://github.com/python/cpython/pull/23702/files#diff-2044b2b16b4875063072f171fbaa695fab71ffa10976692286bc7f5e0fb4b545 |
| Lib/test/test_genericalias.py | https://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.py | https://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 page | https://github.com/python/cpython/pull/23702/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |