René's URL Explorer Experiment


Title: How should we add `@deprecated` to objects in the standard library? · Issue #11002 · python/typeshed · GitHub

Open Graph Title: How should we add `@deprecated` to objects in the standard library? · Issue #11002 · python/typeshed

X Title: How should we add `@deprecated` to objects in the standard library? · Issue #11002 · python/typeshed

Description: If an object is deprecated in Python 3.12, to be removed in Python 3.14, should we decorate it like this? (1) @deprecated("Will be removed in Python 3.14") class Foo: ... Like this? (2) @deprecated("Deprecated in Python 3.12; will be rem...

Open Graph Description: If an object is deprecated in Python 3.12, to be removed in Python 3.14, should we decorate it like this? (1) @deprecated("Will be removed in Python 3.14") class Foo: ... Like this? (2) @deprecated...

X Description: If an object is deprecated in Python 3.12, to be removed in Python 3.14, should we decorate it like this? (1) @deprecated("Will be removed in Python 3.14") class Foo: ... Like this? (2) @...

Opengraph URL: https://github.com/python/typeshed/issues/11002

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How should we add `@deprecated` to objects in the standard library?","articleBody":"If an object is deprecated in Python 3.12, to be removed in Python 3.14, should we decorate it like this? (1)\r\n\r\n```py\r\n@deprecated(\"Will be removed in Python 3.14\")\r\nclass Foo: ...\r\n```\r\n\r\nLike this? (2)\r\n\r\n```py\r\n@deprecated(\"Deprecated in Python 3.12; will be removed in Python 3.14\")\r\nclass Foo: ...\r\n```\r\n\r\nOr like this? (3)\r\n\r\n```py\r\nif sys.version_info >= (3, 12):\r\n    @deprecated(\"Will be removed in Python 3.14\")\r\n    class Foo: ...\r\nelse:\r\n    class Foo: ...\r\n```\r\n\r\nFor somebody who uses Python 3.8, it might be surprising if a type checker started emitting warnings about an object being deprecated if the runtime only emits a `DeprecationWarning` on Python 3.12+. For that user, Python 3.14 will be a long way away; they might not even be _able_ to switch to the newer way of doing things yet (perhaps the \"replacement idiom\" only exists on Python 3.9+). For us in typeshed, however, (3) is obviously the most tedious option for us to maintain, as it will mean more branches.\r\n\r\nThoughts?","author":{"url":"https://github.com/AlexWaygood","@type":"Person","name":"AlexWaygood"},"datePublished":"2023-11-09T15:45:04Z","url":"https://github.com/python/typeshed/issues/11002"}

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:f8cc5cf0-daf1-39c5-e43e-33c9987a3f24
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA060:2261EB:1CB859:253054:6AFFB2A6
html-safe-nonceb24445f4991e57d207ae6490fa18a52095b660bf899f20e57140c2051d8dd71f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDYwOjIyNjFFQjoxQ0I4NTk6MjUzMDU0OjZBRkZCMkE2IiwidmlzaXRvcl9pZCI6IjMyNjE2NjcwMzA4NTk1Nzc5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac31c1d1fc01dae005068ceb131ff03895ffd85484665c7ff9f8e584ab786e2595
hovercard-subject-tagissue:1985911602
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/typeshed/11002/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e4f72925f033dc322f7d9a85e4c5a50ca99986305ab41118d09bbeecf99848b0/python/typeshed/issues/11002
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e4f72925f033dc322f7d9a85e4c5a50ca99986305ab41118d09bbeecf99848b0/python/typeshed/issues/11002
og:image:altIf an object is deprecated in Python 3.12, to be removed in Python 3.14, should we decorate it like this? (1) @deprecated("Will be removed in Python 3.14") class Foo: ... Like this? (2) @deprecated...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAlexWaygood
hostnamegithub.com
expected-hostnamegithub.com
None0cfbaed33b1bdb4acc1759cf1f9961081735b46e22e30a787492e9eeb3019ca2
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
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
release4992f08cc0d7b67d9895cb99b8e0e36c6493ee78
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/11002#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F11002
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%2Ftypeshed%2Fissues%2F11002
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%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/11002
Reloadhttps://github.com/python/typeshed/issues/11002
Reloadhttps://github.com/python/typeshed/issues/11002
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests249 (249)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/11002
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/11002
#11005https://github.com/python/typeshed/pull/11005
How should we add @deprecated to objects in the standard library?https://github.com/python/typeshed/issues/11002#top
#11005https://github.com/python/typeshed/pull/11005
project: policyOrganization of the typeshed projecthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20policy%22
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issue-1985911602
AlexWaygoodhttps://github.com/AlexWaygood
project: policyOrganization of the typeshed projecthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20policy%22
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#event-10914931736
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804095482
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804096371
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804098787
https://github.com/srittau
srittauhttps://github.com/srittau
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804098864
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804102783
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804107272
python/mypy#15164https://github.com/python/mypy/pull/15164
https://github.com/Avasam
Avasamhttps://github.com/Avasam
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804124613
python/mypy#15164https://github.com/python/mypy/pull/15164
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804126688
#11001https://github.com/python/typeshed/pull/11001
https://github.com/Avasam
Avasamhttps://github.com/Avasam
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804149426
https://github.com/srittau
srittauhttps://github.com/srittau
on Nov 9, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804185223
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 10, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804930958
#11005https://github.com/python/typeshed/pull/11005
@srittauhttps://github.com/srittau
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
on Nov 10, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1804961254
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Nov 10, 2023https://github.com/python/typeshed/issues/11002#issuecomment-1805017419
#11009https://github.com/python/typeshed/pull/11009
JelleZijlstrahttps://github.com/JelleZijlstra
completedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#11005https://github.com/python/typeshed/pull/11005
on Nov 18, 2023https://github.com/python/typeshed/issues/11002#event-11002465144
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/11002
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/11002
project: policyOrganization of the typeshed projecthttps://github.com/python/typeshed/issues?q=state%3Aopen%20label%3A%22project%3A%20policy%22
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.