| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5f76f44e-5648-09b9-f574-1378b02e6e81 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E3FE:F40F2:3114DE:41B942:6969CE40 |
| html-safe-nonce | 8a36df3528a52994f963cf8f8b52b705e8174a2d100e82e2490c05627530f8e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0ZFOkY0MEYyOjMxMTRERTo0MUI5NDI6Njk2OUNFNDAiLCJ2aXNpdG9yX2lkIjoiMjc2MjU4NTQyMzk3MDE2MDE5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 62d2e273edb5a4f112cd89e4b12626ff773338360fde24cd223efb2e2abf3611 |
| hovercard-subject-tag | pull_request:900665331 |
| 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/32341/files |
| twitter:image | https://avatars.githubusercontent.com/u/4431336?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4431336?s=400&v=4 |
| og:image:alt | Here's a reference of what we currently do and don't allow in terms of type variable substitution in aliases. I've marked the cases that I think the current implementation is incorrect ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/32341/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F32341%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%2F32341%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/32341/files |
| Reload | https://github.com/python/cpython/pull/32341/files |
| Reload | https://github.com/python/cpython/pull/32341/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/32341/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/32341/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 |
| JelleZijlstra | https://github.com/JelleZijlstra |
| python:main | https://github.com/python/cpython/tree/main |
| mrahtz:subst-tests | https://github.com/mrahtz/cpython/tree/subst-tests |
|
Conversation
42
| https://github.com/python/cpython/pull/32341 |
|
Commits
24
| https://github.com/python/cpython/pull/32341/commits |
|
Checks
0
| https://github.com/python/cpython/pull/32341/checks |
|
Files changed
| https://github.com/python/cpython/pull/32341/files |
| Please reload this page | https://github.com/python/cpython/pull/32341/files |
|
gh-87390: Add tests demonstrating current type variable substitution behaviour
| https://github.com/python/cpython/pull/32341/files#top |
|
Show all changes
24 commits
| https://github.com/python/cpython/pull/32341/files |
|
f508d12
Add integration tests for type variable substitution
mrahtz Apr 5, 2022
| https://github.com/python/cpython/pull/32341/commits/f508d12ea51855a6eedbbb28a2d55c7a9a3b904f |
|
ea104b9
Add tests for list, dict and tuple
mrahtz Apr 8, 2022
| https://github.com/python/cpython/pull/32341/commits/ea104b97a8198bd26e85ea62f383be1c8fae99cf |
|
526d9e8
Add tests for Tuple
mrahtz Apr 9, 2022
| https://github.com/python/cpython/pull/32341/commits/526d9e8995ff4da08fd4e2d8c43fc0c39deef593 |
|
0f022db
Revert "Add tests for Tuple"
mrahtz Apr 9, 2022
| https://github.com/python/cpython/pull/32341/commits/0f022db57132dc6cec9318768250f27640d4d941 |
|
cc7bf8c
Make it easier to tests all tuple, list and dict types
mrahtz Apr 10, 2022
| https://github.com/python/cpython/pull/32341/commits/cc7bf8cc6540f1964dd04ae28f1fb0d6806df781 |
|
458b5dd
TypeVarSubstitutionTests -> GenericAliasSubstitutionTests
mrahtz Apr 10, 2022
| https://github.com/python/cpython/pull/32341/commits/458b5ddbbb96301496113a7a8aceca4d7116cbf8 |
|
0c8ba38
Remove question marks from cases I'm actually pretty sure about
mrahtz Apr 10, 2022
| https://github.com/python/cpython/pull/32341/commits/0c8ba383d83731e03ad9569daec84570d4f57d0f |
|
db24e70
Note that list[] should only take one argument
mrahtz Apr 11, 2022
| https://github.com/python/cpython/pull/32341/commits/db24e70cd086bc0ca65d59cc7e014466ebbd9fc7 |
|
15a4809
Leave unpacked tuples unsimplified
mrahtz Apr 11, 2022
| https://github.com/python/cpython/pull/32341/commits/15a48099849ea0367e5949c2e5a93a6643772695 |
|
0d7d2eb
Add generic[*Ts][*tuple[*Ts]]
mrahtz Apr 11, 2022
| https://github.com/python/cpython/pull/32341/commits/0d7d2eb5e6860d61c1e9741fb34e491b212facfb |
|
ab01c8a
Update comments based on decision to leave unpacked tuples unsimplified
mrahtz Apr 11, 2022
| https://github.com/python/cpython/pull/32341/commits/ab01c8a8c24c31f04a8c70242ef374bca23374e7 |
|
c4fe922
Add tests for generic[T1, bool, T2][*tuple[int, str]]
mrahtz Apr 15, 2022
| https://github.com/python/cpython/pull/32341/commits/c4fe922c4e2f301a84e74ca02ec979fa3e47cc0c |
|
d55b8fb
Update comments based on decision to unpack *some* tuples
mrahtz Apr 15, 2022
| https://github.com/python/cpython/pull/32341/commits/d55b8fb02cfd203085ac306936d783faa41080f8 |
|
e858fc6
Note that generic[*tuple[()]] should raise TypeError
mrahtz Apr 16, 2022
| https://github.com/python/cpython/pull/32341/commits/e858fc6af418027f850a505333dd88f1751ff75d |
|
3bc7d26
Note that C[T, *tuple[int, ...]][int] raises TypeError only because C…
mrahtz Apr 16, 2022
| https://github.com/python/cpython/pull/32341/commits/3bc7d262192bb23bfba50f97011cc1bca8aab71b |
|
c980e4f
State that multiple unpackings should be allowed where possible
mrahtz Apr 16, 2022
| https://github.com/python/cpython/pull/32341/commits/c980e4f1e85eea9f4c107534fc0efd92a579985f |
|
95b7210
Add test for generic[T1, *tuple[int, ...], T2][str, bool, float]
mrahtz Apr 16, 2022
| https://github.com/python/cpython/pull/32341/commits/95b721074524f89b6e136f9d728ac22410a1e303 |
|
96394b1
Update comments according to revised tentative spec at https://github…
mrahtz Apr 16, 2022
| https://github.com/python/cpython/pull/32341/commits/96394b1f86b13fb82ee07a953f2669560f037ecd |
|
ed9a557
Update expected comments to account for unpacked types only being val…
mrahtz Apr 18, 2022
| https://github.com/python/cpython/pull/32341/commits/ed9a5576d86d24ebd8502b2d10d1b17ff63c6064 |
|
faa9fc3
Merge branch 'main' into subst-tests
mrahtz Apr 18, 2022
| https://github.com/python/cpython/pull/32341/commits/faa9fc3b80fcc25c184c06a2b5faceaeb241e0d8 |
|
9947fc0
Update to reflect results after merging latest main
mrahtz Apr 18, 2022
| https://github.com/python/cpython/pull/32341/commits/9947fc073b9d9a16f7d5cecba0794214ea737179 |
|
12496fc
Update ALL tests to reflect results after merging latest main
mrahtz Apr 18, 2022
| https://github.com/python/cpython/pull/32341/commits/12496fc0ec0b1adb3030d3f89b054f3e50697040 |
|
db9af53
Remove comments saying we should get a TypeError in cases where we *d…
mrahtz Apr 18, 2022
| https://github.com/python/cpython/pull/32341/commits/db9af53d38f31961ac7d97bb174a35a77d5d274e |
|
c5b5a63
Update comments on expected results based on latest tentative spec at…
mrahtz Apr 29, 2022
| https://github.com/python/cpython/pull/32341/commits/c5b5a63585f5e0cd656ddafd1ff00fd25eded010 |
|
Clear filters
| https://github.com/python/cpython/pull/32341/files |
| Please reload this page | https://github.com/python/cpython/pull/32341/files |
| Please reload this page | https://github.com/python/cpython/pull/32341/files |
| Please reload this page | https://github.com/python/cpython/pull/32341/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 |