| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:060d2f1e-9b9e-8b63-211c-326bb878c9da |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 81B0:3B3078:284A:337D:696B56C9 |
| html-safe-nonce | 6d2d256f8a33a40546890f1f25022cb5fe2ac1b4ec99d2c8c642d86ad96a2d73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUIwOjNCMzA3ODoyODRBOjMzN0Q6Njk2QjU2QzkiLCJ2aXNpdG9yX2lkIjoiNjIyMDQ1NzU5ODIwNTUxNTQ2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4b3ebfc81c270a48774235367c60e71a7c8743dc77aa6685e6cae354025f8958 |
| hovercard-subject-tag | pull_request:611701990 |
| 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/25282/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 | https://bugs.python.org/issue43766 |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/25282/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25282%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%2F25282%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/25282/files |
| Reload | https://github.com/python/cpython/pull/25282/files |
| Reload | https://github.com/python/cpython/pull/25282/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/25282/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/25282/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:pep647 | https://github.com/Fidget-Spinner/cpython/tree/pep647 |
|
Conversation
33
| https://github.com/python/cpython/pull/25282 |
|
Commits
13
| https://github.com/python/cpython/pull/25282/commits |
|
Checks
0
| https://github.com/python/cpython/pull/25282/checks |
|
Files changed
| https://github.com/python/cpython/pull/25282/files |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
|
bpo-43766: Implement PEP 647 (User-Defined Type Guards) in typing.py
| https://github.com/python/cpython/pull/25282/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/25282/files |
|
afbd42b
Implement PEP 647
Fidget-Spinner Apr 8, 2021
| https://github.com/python/cpython/pull/25282/commits/afbd42bdf9c795edd776216c56d5bcd29db07bf9 |
|
8c994a5
improve docs
Fidget-Spinner Apr 8, 2021
| https://github.com/python/cpython/pull/25282/commits/8c994a5c99111be026ddbf6dcf558baa2af91c47 |
|
493b18d
delete redundant test
Fidget-Spinner Apr 8, 2021
| https://github.com/python/cpython/pull/25282/commits/493b18d3629f660ac7977ed681ce2fc0e6a0160b |
|
eb8dc6b
Address some of Guido's doc comments
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/eb8dc6b5848a5a0ee74fe1179fd592172af52cab |
|
49964fa
small typo
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/49964fa3c5945900f54294e5936ec80d81dfdd6d |
|
fa736a7
Fix doc builder failures, add comment about no strict narrowing
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/fa736a7dd6e15681a0ce7f1a6fc1f68887fa242b |
|
5e4c5f7
relax tests for arguments
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/5e4c5f7010e0117ee22ee420bef476fd9b8a1277 |
|
481b618
fix indentation, improve wording about unenforced narrowing
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/481b618dad81b213443cc291e3cf9466e1110032 |
|
7f3a113
Add note about class/instance methods, improve wording of type narrow…
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/7f3a11339048c1c379359025b87aa0e3ee3d84f4 |
|
d2aaf76
Merge remote-tracking branch 'upstream/master' into pep647
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/d2aaf7656924a0986358c997b94325d4d5ff3af5 |
|
f015c82
inform the user that typeguard may fail at runtime even after passing…
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/f015c8223a78c9239408fbff3634d4d607faeb06 |
|
6731b24
Address Guido's docs reviews
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/6731b24e33eb14e787381bec560b09cef032a243 |
|
39e8d8e
fix formatting
Fidget-Spinner Apr 11, 2021
| https://github.com/python/cpython/pull/25282/commits/39e8d8e54318715e09b6293e8f141971e64b96cf |
|
Clear filters
| https://github.com/python/cpython/pull/25282/files |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
|
typing.rst
| https://github.com/python/cpython/pull/25282/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
|
3.10.rst
| https://github.com/python/cpython/pull/25282/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
test_typing.py
| https://github.com/python/cpython/pull/25282/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
typing.py
| https://github.com/python/cpython/pull/25282/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
2021-04-09-00-16-22.bpo-43766.nYNQP0.rst
| https://github.com/python/cpython/pull/25282/files#diff-9b98cc58db0e2f33644b558cc5fbcbcd359982b6ea5ddce739d75ab4ac39527d |
| Doc/library/typing.rst | https://github.com/python/cpython/pull/25282/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/39e8d8e54318715e09b6293e8f141971e64b96cf/Doc/library/typing.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25282/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25282/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
|
| https://github.com/python/cpython/pull/25282/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
| Doc/whatsnew/3.10.rst | https://github.com/python/cpython/pull/25282/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/39e8d8e54318715e09b6293e8f141971e64b96cf/Doc/whatsnew/3.10.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25282/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25282/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
| https://github.com/python/cpython/pull/25282/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
| Lib/test/test_typing.py | https://github.com/python/cpython/pull/25282/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/39e8d8e54318715e09b6293e8f141971e64b96cf/Lib/test/test_typing.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25282/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25282/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
| https://github.com/python/cpython/pull/25282/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
| https://github.com/python/cpython/pull/25282/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
| Please reload this page | https://github.com/python/cpython/pull/25282/files |
|
| https://github.com/python/cpython/pull/25282/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
| Lib/typing.py | https://github.com/python/cpython/pull/25282/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/39e8d8e54318715e09b6293e8f141971e64b96cf/Lib/typing.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25282/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/25282/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
| https://github.com/python/cpython/pull/25282/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
| https://github.com/python/cpython/pull/25282/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
| https://github.com/python/cpython/pull/25282/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
| Misc/NEWS.d/next/Library/2021-04-09-00-16-22.bpo-43766.nYNQP0.rst | https://github.com/python/cpython/pull/25282/files#diff-9b98cc58db0e2f33644b558cc5fbcbcd359982b6ea5ddce739d75ab4ac39527d |
|
View file
| https://github.com/Fidget-Spinner/cpython/blob/39e8d8e54318715e09b6293e8f141971e64b96cf/Misc/NEWS.d/next/Library/2021-04-09-00-16-22.bpo-43766.nYNQP0.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/25282/{{ revealButtonHref }} |
|
| 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 |