| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b61c264b-31d4-3b88-a12b-0c7d942cb23c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 950E:E194E:3C35A9:4F2B24:696B3C6E |
| html-safe-nonce | cc4fb79f0b72e2c16e22e8e2f8400e61fa359e51524fceb9ada30262bbe7ff78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTBFOkUxOTRFOjNDMzVBOTo0RjJCMjQ6Njk2QjNDNkUiLCJ2aXNpdG9yX2lkIjoiNDMwMjA0MjI5NDMxNjEyMTE5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 635b3506067612c00c60d62ca74f960be91e6bc3ef3cd6ced44eaf03522ee1a3 |
| hovercard-subject-tag | pull_request:878302857 |
| 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/31841/files |
| twitter:image | https://avatars.githubusercontent.com/u/12621235?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12621235?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue46998 |
| 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/31841/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31841%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%2F31841%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/31841/files |
| Reload | https://github.com/python/cpython/pull/31841/files |
| Reload | https://github.com/python/cpython/pull/31841/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/31841/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/31841/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 |
| hauntsaninja:subclass-any | https://github.com/hauntsaninja/cpython/tree/subclass-any |
|
Conversation
25
| https://github.com/python/cpython/pull/31841 |
|
Commits
15
| https://github.com/python/cpython/pull/31841/commits |
|
Checks
0
| https://github.com/python/cpython/pull/31841/checks |
|
Files changed
| https://github.com/python/cpython/pull/31841/files |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
|
bpo-46998: Allow subclassing Any at runtime
| https://github.com/python/cpython/pull/31841/files#top |
|
Show all changes
15 commits
| https://github.com/python/cpython/pull/31841/files |
|
bc71456
bpo-46998: Allow subclassing Any at runtime
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/bc7145697c188e6876257c1de0d545a27b6d7b89 |
|
abea39a
make error consistent
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/abea39a381934b0d50a3be8048edf6367a3ff512 |
|
771f492
remove functools checks
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/771f492f76f72b0451219500f3d71aeb54eb2308 |
|
900f2c7
📜🤖 Added by blurb_it.
blurb-it[bot] Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/900f2c7ae847231857f290b60a7f472bf85f4957 |
|
6e76441
more tests
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/6e7644165f71c20d0f2ebd38354ec8298d840214 |
|
b00ab17
Update Misc/NEWS.d/next/Library/2022-03-13-08-52-58.bpo-46998.cHh-9O.rst
hauntsaninja Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/b00ab171646efbdc1012f4b80bd6070ce388cc37 |
|
4d913ad
oops, fix test
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/4d913add2e7f38250e361b8a411d743c790e1839 |
|
1c1ab38
cooperative inheritance
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/1c1ab38de08ade0454e2dbb3338e84e57f779d95 |
|
4927e78
fix tests
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/4927e78b9014637ab87f99842f3c3db1cbf458e6 |
|
68ea3a8
okay, make instancecheck work with multiple inheritance
Mar 13, 2022
| https://github.com/python/cpython/pull/31841/commits/68ea3a844f861293fd75c33fe645bdd667f74257 |
|
f94b7e0
mention in docs
Mar 30, 2022
| https://github.com/python/cpython/pull/31841/commits/f94b7e014987d8ad791d1731d2512bdb1cbbae97 |
|
05db029
Merge remote-tracking branch 'upstream/main' into subclass-any
Mar 30, 2022
| https://github.com/python/cpython/pull/31841/commits/05db02987ef7c1991fe4a63d145fb9583ed6b619 |
|
e11f405
fix pydoc test
Mar 30, 2022
| https://github.com/python/cpython/pull/31841/commits/e11f405a4aa3752075815fc248b17c4114da7772 |
|
63b00e4
add a sentence on reasoning
Mar 30, 2022
| https://github.com/python/cpython/pull/31841/commits/63b00e41cb466191874763af431ce9e500eeecbc |
|
ac7b4a8
preposition
Mar 31, 2022
| https://github.com/python/cpython/pull/31841/commits/ac7b4a894ddaa0f443413fb263f4628ca31b17f4 |
|
Clear filters
| https://github.com/python/cpython/pull/31841/files |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
|
typing.rst
| https://github.com/python/cpython/pull/31841/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
|
test_functools.py
| https://github.com/python/cpython/pull/31841/files#diff-d6d3bf2c98d5abf2efefac777e6edc9e571f4af579e71c1ce4d500c2045aa546 |
|
test_pydoc.py
| https://github.com/python/cpython/pull/31841/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621 |
|
test_typing.py
| https://github.com/python/cpython/pull/31841/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
typing.py
| https://github.com/python/cpython/pull/31841/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
2022-03-13-08-52-58.bpo-46998.cHh-9O.rst
| https://github.com/python/cpython/pull/31841/files#diff-25b815857a9b64b007df6cc4dfee88c13696a77c3b079ba7ca1219785ef006d7 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L598 |
| Doc/library/typing.rst | https://github.com/python/cpython/pull/31841/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
|
View file
| https://github.com/hauntsaninja/cpython/blob/ac7b4a894ddaa0f443413fb263f4628ca31b17f4/Doc/library/typing.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31841/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31841/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
|
| https://github.com/python/cpython/pull/31841/files#diff-8a0f115fde6769c122b771b6d0eca184c4580f7b5fabe2f0b0579c679424364f |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L465 |
| Lib/test/test_functools.py | https://github.com/python/cpython/pull/31841/files#diff-d6d3bf2c98d5abf2efefac777e6edc9e571f4af579e71c1ce4d500c2045aa546 |
|
View file
| https://github.com/hauntsaninja/cpython/blob/ac7b4a894ddaa0f443413fb263f4628ca31b17f4/Lib/test/test_functools.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31841/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31841/files#diff-d6d3bf2c98d5abf2efefac777e6edc9e571f4af579e71c1ce4d500c2045aa546 |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Mar 13, 2022 | https://github.com/python/cpython/pull/31841/files#r825499554 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| AlexWaygood | https://github.com/AlexWaygood |
| Mar 30, 2022 | https://github.com/python/cpython/pull/31841/files#r838525975 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @ambv | https://github.com/ambv |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
|
| https://github.com/python/cpython/pull/31841/files#diff-d6d3bf2c98d5abf2efefac777e6edc9e571f4af579e71c1ce4d500c2045aa546 |
|
| https://github.com/python/cpython/pull/31841/files#diff-d6d3bf2c98d5abf2efefac777e6edc9e571f4af579e71c1ce4d500c2045aa546 |
|
| https://github.com/python/cpython/pull/31841/files#diff-d6d3bf2c98d5abf2efefac777e6edc9e571f4af579e71c1ce4d500c2045aa546 |
| Lib/test/test_pydoc.py | https://github.com/python/cpython/pull/31841/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621 |
|
View file
| https://github.com/hauntsaninja/cpython/blob/ac7b4a894ddaa0f443413fb263f4628ca31b17f4/Lib/test/test_pydoc.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31841/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31841/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621 |
|
| https://github.com/python/cpython/pull/31841/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L599 |
| Lib/test/test_typing.py | https://github.com/python/cpython/pull/31841/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
View file
| https://github.com/hauntsaninja/cpython/blob/ac7b4a894ddaa0f443413fb263f4628ca31b17f4/Lib/test/test_typing.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31841/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31841/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
| https://github.com/python/cpython/pull/31841/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
| https://github.com/python/cpython/pull/31841/files#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305d |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L601 |
| Lib/typing.py | https://github.com/python/cpython/pull/31841/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
View file
| https://github.com/hauntsaninja/cpython/blob/ac7b4a894ddaa0f443413fb263f4628ca31b17f4/Lib/typing.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31841/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31841/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Mar 13, 2022 | https://github.com/python/cpython/pull/31841/files#r825499847 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| hauntsaninja | https://github.com/hauntsaninja |
| Mar 13, 2022 | https://github.com/python/cpython/pull/31841/files#r825509600 |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Mar 13, 2022 | https://github.com/python/cpython/pull/31841/files#r825499709 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| hauntsaninja | https://github.com/hauntsaninja |
| Mar 13, 2022 | https://github.com/python/cpython/pull/31841/files#r825509555 |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
| Please reload this page | https://github.com/python/cpython/pull/31841/files |
|
| https://github.com/python/cpython/pull/31841/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
| https://github.com/python/cpython/pull/31841/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
| Misc/NEWS.d/next/Library/2022-03-13-08-52-58.bpo-46998.cHh-9O.rst | https://github.com/python/cpython/pull/31841/files#diff-25b815857a9b64b007df6cc4dfee88c13696a77c3b079ba7ca1219785ef006d7 |
|
View file
| https://github.com/hauntsaninja/cpython/blob/ac7b4a894ddaa0f443413fb263f4628ca31b17f4/Misc/NEWS.d/next/Library/2022-03-13-08-52-58.bpo-46998.cHh-9O.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31841/{{ 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 |