René's URL Explorer Experiment


Title: gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` by brianschubert · Pull Request #138210 · python/cpython · GitHub

Open Graph Title: gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` by brianschubert · Pull Request #138210 · python/cpython

X Title: gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` by brianschubert · Pull Request #138210 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010

X Description: Issue: warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:570b1301-918b-8c54-5ee0-33e8a37a69b2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9578:3E399E:B2A279:F9D33D:6A4E884C
html-safe-noncedd3c7064e3c36dee47446a4c94a4c0aa3f369f239968d6a10116b7c2266cef86
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTc4OjNFMzk5RTpCMkEyNzk6RjlEMzNEOjZBNEU4ODRDIiwidmlzaXRvcl9pZCI6IjUyNjkxNjAzNjU1MDE4NzYzMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc567613beedd472602a2172fb19cdb6b3cf925d9aad604dedf087588a72495db
hovercard-subject-tagpull_request:2779640265
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/138210/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/15fe539fd3d485f768ed13666fbb161d2c13b041db99565f7e3d457d6e245fd5/python/cpython/pull/138210
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/15fe539fd3d485f768ed13666fbb161d2c13b041db99565f7e3d457d6e245fd5/python/cpython/pull/138210
og:image:altIssue: warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrianschubert
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/138210#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138210
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F138210
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/138210
Reloadhttps://github.com/python/cpython/pull/138210
Reloadhttps://github.com/python/cpython/pull/138210
Please reload this pagehttps://github.com/python/cpython/pull/138210
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/138210
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
brianschubert:gh-138010-deprecated-init-subclasshttps://github.com/brianschubert/cpython/tree/gh-138010-deprecated-init-subclass
Conversationhttps://github.com/python/cpython/pull/138210
Commits2 (2)https://github.com/python/cpython/pull/138210/commits
Checkshttps://github.com/python/cpython/pull/138210/checks
Files changedhttps://github.com/python/cpython/pull/138210/files
gh-138010: Fix __init_subclass__ forwarding by warnings.deprecatedhttps://github.com/python/cpython/pull/138210#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
brianschubert:gh-138010-deprecated-init-subclasshttps://github.com/brianschubert/cpython/tree/gh-138010-deprecated-init-subclass
https://github.com/brianschubert
brianschuberthttps://github.com/brianschubert
Aug 27, 2025https://github.com/python/cpython/pull/138210#issue-3360876437
Please reload this pagehttps://github.com/python/cpython/pull/138210
warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010https://github.com/python/cpython/issues/138010
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/brianschubert
Fix __init_subclass__ forwarding by warnings.deprecatedhttps://github.com/python/cpython/pull/138210/commits/b40db8069b97678b4fe8bd8b35a6f5d5804d495f
b40db80https://github.com/python/cpython/pull/138210/commits/b40db8069b97678b4fe8bd8b35a6f5d5804d495f
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 27, 2025https://github.com/python/cpython/pull/138210#event-19377695146
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 27, 2025 https://github.com/python/cpython/pull/138210#ref-issue-3339684475
warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010 https://github.com/python/cpython/issues/138010
https://github.com/brianschubert
brianschuberthttps://github.com/brianschubert
JelleZijlstrahttps://github.com/JelleZijlstra
August 27, 2025 21:15https://github.com/python/cpython/pull/138210#event-19377698857
https://github.com/brianschubert
News tweakshttps://github.com/python/cpython/pull/138210/commits/0755608e1a9eccca6c6cef7bba40cc548cc992e0
0755608https://github.com/python/cpython/pull/138210/commits/0755608e1a9eccca6c6cef7bba40cc548cc992e0
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Sep 5, 2025 https://github.com/python/cpython/pull/138210#pullrequestreview-3190744465
View reviewed changes https://github.com/python/cpython/pull/138210/files/0755608e1a9eccca6c6cef7bba40cc548cc992e0
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19535926894
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19535927668
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
September 5, 2025 20:44https://github.com/python/cpython/pull/138210#event-19535930130
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
e2c038fhttps://github.com/python/cpython/commit/e2c038f5be2df39a7b06364dec0836a25c423b67
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19535930917
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 5, 2025https://github.com/python/cpython/pull/138210#issuecomment-3259702952
@brianschuberthttps://github.com/brianschubert
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19535931483
miss-islingtonhttps://github.com/miss-islington
Sep 5, 2025 https://github.com/python/cpython/pull/138210#ref-commit-8923b3d
https://github.com/brianschubert
https://github.com/miss-islington
pythongh-138010https://github.com/python/cpython/issues/138010
: Fixhttps://github.com/miss-islington/cpython/commit/8923b3db44f490c848c488007ce17975c8ccdfa7
__init_subclass__https://github.com/miss-islington/cpython/commit/8923b3db44f490c848c488007ce17975c8ccdfa7
forwarding by `warnings.depr…https://github.com/miss-islington/cpython/commit/8923b3db44f490c848c488007ce17975c8ccdfa7
8923b3dhttps://github.com/miss-islington/cpython/commit/8923b3db44f490c848c488007ce17975c8ccdfa7
pythonGH-138210https://github.com/python/cpython/pull/138210
e2c038fhttps://github.com/miss-islington/cpython/commit/e2c038f5be2df39a7b06364dec0836a25c423b67
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 5, 2025https://github.com/python/cpython/pull/138210#issuecomment-3259703190
@brianschuberthttps://github.com/brianschubert
@JelleZijlstrahttps://github.com/JelleZijlstra
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
JelleZijlstrahttps://github.com/JelleZijlstra
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19535933551
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 5, 2025https://github.com/python/cpython/pull/138210#issuecomment-3259703370
GH-138561https://github.com/python/cpython/pull/138561
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19535934284
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Sep 5, 2025https://github.com/python/cpython/pull/138210#issuecomment-3259709236
@brianschuberthttps://github.com/brianschubert
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/brianschubert
brianschuberthttps://github.com/brianschubert
Sep 5, 2025https://github.com/python/cpython/pull/138210#issuecomment-3259714992
@JelleZijlstrahttps://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/138210
brianschuberthttps://github.com/brianschubert
Sep 5, 2025 https://github.com/python/cpython/pull/138210#ref-commit-3df5a67
https://github.com/brianschubert
[3.13]https://github.com/brianschubert/cpython/commit/3df5a67a994090986ad486af684f0638e652d8e3
pythongh-138010https://github.com/python/cpython/issues/138010
: Fixhttps://github.com/brianschubert/cpython/commit/3df5a67a994090986ad486af684f0638e652d8e3
__init_subclass__https://github.com/brianschubert/cpython/commit/3df5a67a994090986ad486af684f0638e652d8e3
forwarding by `warnin…https://github.com/brianschubert/cpython/commit/3df5a67a994090986ad486af684f0638e652d8e3
3df5a67https://github.com/brianschubert/cpython/commit/3df5a67a994090986ad486af684f0638e652d8e3
pythonGH-138210https://github.com/python/cpython/pull/138210
e2c038fhttps://github.com/brianschubert/cpython/commit/e2c038f5be2df39a7b06364dec0836a25c423b67
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 5, 2025https://github.com/python/cpython/pull/138210#issuecomment-3259726117
GH-138564https://github.com/python/cpython/pull/138564
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Sep 5, 2025https://github.com/python/cpython/pull/138210#event-19536052805
https://github.com/brianschubert
brianschuberthttps://github.com/brianschubert
Sep 5, 2025 https://github.com/python/cpython/pull/138210#ref-pullrequest-3388775953
Backport __init_subclass__ fix for @deprecated from CPython python/typing_extensions#673 https://github.com/python/typing_extensions/pull/673
JelleZijlstrahttps://github.com/JelleZijlstra
Sep 5, 2025 https://github.com/python/cpython/pull/138210#ref-commit-cf62144
https://github.com/brianschubert
[3.13]https://github.com/python/cpython/commit/cf62144f45ac967d0463cacfb06da99f681c669b
gh-138010https://github.com/python/cpython/issues/138010
: Fixhttps://github.com/python/cpython/commit/cf62144f45ac967d0463cacfb06da99f681c669b
__init_subclass__https://github.com/python/cpython/commit/cf62144f45ac967d0463cacfb06da99f681c669b
forwarding by `warnings.dep…https://github.com/python/cpython/commit/cf62144f45ac967d0463cacfb06da99f681c669b
cf62144https://github.com/python/cpython/commit/cf62144f45ac967d0463cacfb06da99f681c669b
GH-138210https://github.com/python/cpython/pull/138210
#138564https://github.com/python/cpython/pull/138564
e2c038fhttps://github.com/python/cpython/commit/e2c038f5be2df39a7b06364dec0836a25c423b67
lkollarhttps://github.com/lkollar
Sep 9, 2025 https://github.com/python/cpython/pull/138210#ref-commit-1fd478d
https://github.com/brianschubert
https://github.com/lkollar
pythongh-138010https://github.com/python/cpython/issues/138010
: Fixhttps://github.com/lkollar/cpython/commit/1fd478d2c2a072d659e6017356e0263d4e8ea650
__init_subclass__https://github.com/lkollar/cpython/commit/1fd478d2c2a072d659e6017356e0263d4e8ea650
forwarding by `warnings.depr…https://github.com/lkollar/cpython/commit/1fd478d2c2a072d659e6017356e0263d4e8ea650
1fd478dhttps://github.com/lkollar/cpython/commit/1fd478d2c2a072d659e6017356e0263d4e8ea650
python#138210https://github.com/python/cpython/pull/138210
JelleZijlstrahttps://github.com/JelleZijlstra
Oct 8, 2025 https://github.com/python/cpython/pull/138210#ref-commit-51dfc67
https://github.com/miss-islington
[3.14]https://github.com/python/cpython/commit/51dfc67092475e6772485aac8394c342771f96af
gh-138010https://github.com/python/cpython/issues/138010
: Fixhttps://github.com/python/cpython/commit/51dfc67092475e6772485aac8394c342771f96af
__init_subclass__https://github.com/python/cpython/commit/51dfc67092475e6772485aac8394c342771f96af
forwarding by `warnings.dep…https://github.com/python/cpython/commit/51dfc67092475e6772485aac8394c342771f96af
51dfc67https://github.com/python/cpython/commit/51dfc67092475e6772485aac8394c342771f96af
GH-138210https://github.com/python/cpython/pull/138210
#138561https://github.com/python/cpython/pull/138561
gh-138010https://github.com/python/cpython/issues/138010
GH-138210https://github.com/python/cpython/pull/138210
e2c038fhttps://github.com/python/cpython/commit/e2c038f5be2df39a7b06364dec0836a25c423b67
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138210
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/cpython/pull/138210/files/0755608e1a9eccca6c6cef7bba40cc548cc992e0
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
Please reload this pagehttps://github.com/python/cpython/pull/138210
https://github.com/brianschubert
https://github.com/JelleZijlstra
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.