René's URL Explorer Experiment


Title: gh-150076: Fix the documented signature of warnings.deprecated by fedonman · Pull Request #153879 · python/cpython · GitHub

Open Graph Title: gh-150076: Fix the documented signature of warnings.deprecated by fedonman · Pull Request #153879 · python/cpython

X Title: gh-150076: Fix the documented signature of warnings.deprecated by fedonman · Pull Request #153879 · python/cpython

Description: The documented signature for warnings.deprecated used msg as the first parameter, but the implementation names it message and it is positional-only. This updates the documented signature to match. An earlier version of this PR also documented that deprecated is a class whose instances expose message, category and stacklevel attributes. As discussed in review, that is not guaranteed by PEP 702 or the typing spec, so documenting it would turn an implementation detail into a permanent API commitment. I dropped that part. Whether those attributes should become guaranteed public API is a separate question that belongs in the typing spec. Issue: gh-150076

Open Graph Description: The documented signature for warnings.deprecated used msg as the first parameter, but the implementation names it message and it is positional-only. This updates the documented signature to match. ...

X Description: The documented signature for warnings.deprecated used msg as the first parameter, but the implementation names it message and it is positional-only. This updates the documented signature to match. ...

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

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:a6014265-d7d0-3377-f885-eb2eb44c2ff6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC372:2F9865:3D1565:4F1C7B:6AFF8A35
html-safe-nonce5b07b10eb99faefaba9ece3531db2a84e347dd52e2caf242cf0deb1a9ee9816e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzcyOjJGOTg2NTozRDE1NjU6NEYxQzdCOjZBRkY4QTM1IiwidmlzaXRvcl9pZCI6IjExOTM0Njc4NzAyODE5NTk5ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1c2e420c88213e7408a0820819ed5dd6c78c18209ede809b3fe707d0702387f0
hovercard-subject-tagpull_request:4080438098
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/153879/files
twitter:imagehttps://avatars.githubusercontent.com/u/3442573?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3442573?s=400&v=4
og:image:altThe documented signature for warnings.deprecated used msg as the first parameter, but the implementation names it message and it is positional-only. This updates the documented signature to match. ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None587ad99a3e443b2e1cb0d3df059ec49ab54389861f13310766dfdeb615fed90d
turbo-cache-controlno-preview
diff-viewunified
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-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5bb0fb68d64881d1344f5863d809515d496801e5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/153879/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153879%2Ffiles
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%2Fpull%2F153879%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/python/cpython/pull/153879/files
Reloadhttps://github.com/python/cpython/pull/153879/files
Reloadhttps://github.com/python/cpython/pull/153879/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
fedonman:fix-gh-150076-warnings-deprecated-apihttps://github.com/fedonman/cpython/tree/fix-gh-150076-warnings-deprecated-api
Conversation 12 https://github.com/python/cpython/pull/153879
Commits 7 https://github.com/python/cpython/pull/153879/commits
Checks 39 https://github.com/python/cpython/pull/153879/checks
Files changed https://github.com/python/cpython/pull/153879/files
Please reload this pagehttps://github.com/python/cpython/pull/153879/files
gh-150076: Fix the documented signature of warnings.deprecated https://github.com/python/cpython/pull/153879/files#top
Show all changes 7 commits https://github.com/python/cpython/pull/153879/files
dcae8f1 gh-150076: Document the public attributes of warnings.deprecated fedonman Jul 18, 2026 https://github.com/python/cpython/pull/153879/commits/dcae8f114ea7555a3597a1e0a7ee96bd99ed1023
7fccd37 Merge branch 'main' into fix-gh-150076-warnings-deprecated-api fedonman Jul 18, 2026 https://github.com/python/cpython/pull/153879/commits/7fccd3752a91a895a09a3a00d74eccbba2a188b5
292000f gh-150076: Don't document warnings.deprecated internals as public API fedonman Jul 19, 2026 https://github.com/python/cpython/pull/153879/commits/292000f25ec5f25daa2b749be62e89f8a3873d29
fea602e Merge branch 'main' into fix-gh-150076-warnings-deprecated-api fedonman Jul 19, 2026 https://github.com/python/cpython/pull/153879/commits/fea602ef385ce87cbdedb7ffaa33b0ca72fb623a
a64f941 Update Doc/library/warnings.rst fedonman Jul 19, 2026 https://github.com/python/cpython/pull/153879/commits/a64f941ba78a0dc8eed7781e8c5e87a943cd1f57
a9dab0b Merge branch 'main' into fix-gh-150076-warnings-deprecated-api fedonman Jul 21, 2026 https://github.com/python/cpython/pull/153879/commits/a9dab0beb3e9335006e1f6812bee284ee639bbac
0dec5d7 Merge branch 'main' into fix-gh-150076-warnings-deprecated-api fedonman Jul 22, 2026 https://github.com/python/cpython/pull/153879/commits/0dec5d7c0dab08e154a41a50b1220c416890c1a3
Clear filters https://github.com/python/cpython/pull/153879/files
Please reload this pagehttps://github.com/python/cpython/pull/153879/files
Please reload this pagehttps://github.com/python/cpython/pull/153879/files
Doc/library/warnings.rsthttps://github.com/python/cpython/pull/153879/files#diff-a1bebcbcf4952228ae2da9a070595507107a212259b66cd81fd843adc38f5cc0
View file https://github.com/fedonman/cpython/blob/0dec5d7c0dab08e154a41a50b1220c416890c1a3/Doc/library/warnings.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/153879/{{ revealButtonHref }}
https://github.com/python/cpython/pull/153879/files#diff-a1bebcbcf4952228ae2da9a070595507107a212259b66cd81fd843adc38f5cc0
https://github.com/python/cpython/pull/153879/files#diff-a1bebcbcf4952228ae2da9a070595507107a212259b66cd81fd843adc38f5cc0
Please reload this pagehttps://github.com/python/cpython/pull/153879/files
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.