René's URL Explorer Experiment


Title: Clarify `warnings.deprecated` public API · Issue #150076 · python/cpython · GitHub

Open Graph Title: Clarify `warnings.deprecated` public API · Issue #150076 · python/cpython

X Title: Clarify `warnings.deprecated` public API · Issue #150076 · python/cpython

Description: Documentation The current docs only specify that it sets the __deprecated__ attribute on the deprecated item. Pydantic relies on its full API: the fact that it’s a class, and that its instances have all passed parameters in attributes: d...

Open Graph Description: Documentation The current docs only specify that it sets the __deprecated__ attribute on the deprecated item. Pydantic relies on its full API: the fact that it’s a class, and that its instances hav...

X Description: Documentation The current docs only specify that it sets the __deprecated__ attribute on the deprecated item. Pydantic relies on its full API: the fact that it’s a class, and that its instances hav...

Opengraph URL: https://github.com/python/cpython/issues/150076

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clarify `warnings.deprecated` public API","articleBody":"### Documentation\n\nThe current docs only specify that it sets the `__deprecated__` attribute on the deprecated item.\n\nPydantic relies on its full API: the fact that it’s a class, and that its instances have all passed parameters in attributes: `deprecated(**kw).__dict__ == kw` basically.\n\nTwo questions:\n\n1. Is that safe or might `deprecated` get e.g. refactored into a function at some point?\n2. Can we subclass it and add parameters? Will type checkers understand this and still mark a `@our_deprecated_subclass(...) def ...` as deprecated? See https://github.com/python/typing/issues/2256\n\nmaybe related to #138165\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153879\n* gh-154487\n* gh-154488\n* gh-154489\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/flying-sheep","@type":"Person","name":"flying-sheep"},"datePublished":"2026-05-19T11:29:38Z","url":"https://github.com/python/cpython/issues/150076"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d0f2e51e-1cb1-9a1f-634c-f0a8f3e96f48
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id974E:199D0B:257977:30C1D5:6AFF8491
html-safe-nonceba7fd7f0ba590214bb3886adab1be89e626c65955fa3460967240166136c4546
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzRFOjE5OUQwQjoyNTc5Nzc6MzBDMUQ1OjZBRkY4NDkxIiwidmlzaXRvcl9pZCI6IjIwNjYyNjA4MDE3MDU5Njg3ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8fff7e7a08cea0008fb9ed4d65b1d3777cbb10c9832d41a7c73116972f0d3ad1
hovercard-subject-tagissue:4476950318
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/150076/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dfb6a1db60e32ac1707b13e5a88113dcfb157378297b3a98e10e4ae8c9f7a027/python/cpython/issues/150076
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dfb6a1db60e32ac1707b13e5a88113dcfb157378297b3a98e10e4ae8c9f7a027/python/cpython/issues/150076
og:image:altDocumentation The current docs only specify that it sets the __deprecated__ attribute on the deprecated item. Pydantic relies on its full API: the fact that it’s a class, and that its instances hav...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameflying-sheep
hostnamegithub.com
expected-hostnamegithub.com
None19488db4031f00b04ea79b4c70b5dd32cfa873a8d20b3877f3896b8e2d195946
turbo-cache-controlno-preview
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
release7952f5285f4ba685d70c4c7540ad3cc9dc9746b8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/150076#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F150076
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F150076
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/150076
Reloadhttps://github.com/python/cpython/issues/150076
Reloadhttps://github.com/python/cpython/issues/150076
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/150076
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/150076
Clarify warnings.deprecated public APIhttps://github.com/python/cpython/issues/150076#top
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
https://github.com/flying-sheep
flying-sheephttps://github.com/flying-sheep
on May 19, 2026https://github.com/python/cpython/issues/150076#issue-4476950318
How to extend warnings.deprecated? typing#2256https://github.com/python/typing/issues/2256
#138165https://github.com/python/cpython/issues/138165
gh-150076: Fix the documented signature of warnings.deprecated #153879https://github.com/python/cpython/pull/153879
[3.15] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) #154487https://github.com/python/cpython/pull/154487
[3.14] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) #154488https://github.com/python/cpython/pull/154488
[3.13] gh-150076: Fix the documented signature of warnings.deprecated (GH-153879) #154489https://github.com/python/cpython/pull/154489
flying-sheephttps://github.com/flying-sheep
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
on May 19, 2026https://github.com/python/cpython/issues/150076#event-25703074529
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on May 19, 2026https://github.com/python/cpython/issues/150076#event-25703079444
github-project-automationhttps://github.com/apps/github-project-automation
docs issueshttps://github.com/orgs/python/projects/52
on May 19, 2026https://github.com/python/cpython/issues/150076
https://github.com/Viicos
Viicoshttps://github.com/Viicos
on May 19, 2026https://github.com/python/cpython/issues/150076#issuecomment-4487748044
#104004 (comment)https://github.com/python/cpython/pull/104004#issuecomment-1826862494
fedonmanhttps://github.com/fedonman
on Jul 18, 2026https://github.com/python/cpython/issues/150076#event-28155224258
Merge branch 'main' into fix-pythongh-150076-warnings-deprecated-apihttps://github.com/fedonman/cpython/commit/7fccd3752a91a895a09a3a00d74eccbba2a188b5
pythongh-150076https://github.com/python/cpython/issues/150076
7fccd37https://github.com/fedonman/cpython/commit/7fccd3752a91a895a09a3a00d74eccbba2a188b5
pythongh-150076: Don't document warnings.deprecated internals as publ…https://github.com/fedonman/cpython/commit/292000f25ec5f25daa2b749be62e89f8a3873d29
pythongh-150076https://github.com/python/cpython/issues/150076
292000fhttps://github.com/fedonman/cpython/commit/292000f25ec5f25daa2b749be62e89f8a3873d29
Merge branch 'main' into fix-pythongh-150076-warnings-deprecated-apihttps://github.com/fedonman/cpython/commit/fea602ef385ce87cbdedb7ffaa33b0ca72fb623a
pythongh-150076https://github.com/python/cpython/issues/150076
fea602ehttps://github.com/fedonman/cpython/commit/fea602ef385ce87cbdedb7ffaa33b0ca72fb623a
Merge branch 'main' into fix-pythongh-150076-warnings-deprecated-apihttps://github.com/fedonman/cpython/commit/a9dab0beb3e9335006e1f6812bee284ee639bbac
pythongh-150076https://github.com/python/cpython/issues/150076
a9dab0bhttps://github.com/fedonman/cpython/commit/a9dab0beb3e9335006e1f6812bee284ee639bbac
Merge branch 'main' into fix-pythongh-150076-warnings-deprecated-apihttps://github.com/fedonman/cpython/commit/0dec5d7c0dab08e154a41a50b1220c416890c1a3
pythongh-150076https://github.com/python/cpython/issues/150076
0dec5d7https://github.com/fedonman/cpython/commit/0dec5d7c0dab08e154a41a50b1220c416890c1a3
JelleZijlstrahttps://github.com/JelleZijlstra
on Jul 22, 2026https://github.com/python/cpython/issues/150076#event-28327157333
gh-150076: Fix the documented signature of warnings.deprecated (#153879)https://github.com/python/cpython/commit/56ad3bca75a408b45b5326980b35b8a2ba8113db
gh-150076https://github.com/python/cpython/issues/150076
#153879https://github.com/python/cpython/pull/153879
56ad3bchttps://github.com/python/cpython/commit/56ad3bca75a408b45b5326980b35b8a2ba8113db
[3.13] gh-150076: Fix the documented signature of warnings.deprecated (…https://github.com/python/cpython/commit/553e3b0be8ce80659bc66439954f40537d2ad6e3
gh-150076https://github.com/python/cpython/issues/150076
…https://github.com/python/cpython/pull/153879
553e3b0https://github.com/python/cpython/commit/553e3b0be8ce80659bc66439954f40537d2ad6e3
[3.14] gh-150076: Fix the documented signature of warnings.deprecated (…https://github.com/python/cpython/commit/12892a22c37b5059af418db29df4bc87f79028e1
gh-150076https://github.com/python/cpython/issues/150076
…https://github.com/python/cpython/pull/153879
12892a2https://github.com/python/cpython/commit/12892a22c37b5059af418db29df4bc87f79028e1
[3.15] gh-150076: Fix the documented signature of warnings.deprecated (…https://github.com/python/cpython/commit/b84c4cc489a3ac70e5bde91e723a0858d8020193
gh-150076https://github.com/python/cpython/issues/150076
…https://github.com/python/cpython/pull/153879
b84c4cchttps://github.com/python/cpython/commit/b84c4cc489a3ac70e5bde91e723a0858d8020193
StanFromIrelandhttps://github.com/StanFromIreland
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 25, 2026https://github.com/python/cpython/issues/150076#event-28477412918
https://github.com/Viicos
Viicoshttps://github.com/Viicos
on Jul 26, 2026https://github.com/python/cpython/issues/150076#issuecomment-5084509018
#153879https://github.com/python/cpython/pull/153879
StanFromIrelandhttps://github.com/StanFromIreland
on Jul 26, 2026https://github.com/python/cpython/issues/150076#event-28504751977
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/150076
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/150076
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
docs issueshttps://github.com/orgs/python/projects/52
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.