GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` by brianschubert · Pull Request #138210 · python/cpython

Conversation

@brianschubert

@brianschubert brianschubert commented Aug 27, 2025 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • Issue: warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brianschubert
Fix __init_subclass__ forwarding by warnings.deprecated
b40db80
@bedevere-app bedevere-app Bot added the awaiting review label Aug 27, 2025
@bedevere-app bedevere-app Bot mentioned this pull request Aug 27, 2025
warnings.deprecated leads to incorrectly set _is_protocol on subclasses #138010
Closed
@brianschubert
brianschubert requested a review from JelleZijlstra August 27, 2025 21:15
@brianschubert
News tweaks
0755608
JelleZijlstra
JelleZijlstra approved these changes Sep 5, 2025
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting review labels Sep 5, 2025
@JelleZijlstra JelleZijlstra added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Sep 5, 2025
@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) September 5, 2025 20:44
@JelleZijlstra
JelleZijlstra merged commit e2c038f into python:main Sep 5, 2025
@miss-islington-app

miss-islington-app Bot commented Sep 5, 2025

Copy link
Copy Markdown

Thanks @brianschubert for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 5, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 5, 2025
@brianschubert @miss-islington
pythongh-138010: Fix __init_subclass__ forwarding by `warnings.depr…
8923b3d
…ecated` (pythonGH-138210)

(cherry picked from commit e2c038f)

Co-authored-by: Brian Schubert <[email protected]>
@miss-islington-app

miss-islington-app Bot commented Sep 5, 2025

Copy link
Copy Markdown

Sorry, @brianschubert and @JelleZijlstra, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker e2c038f5be2df39a7b06364dec0836a25c423b67 3.13
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app miss-islington-app Bot assigned JelleZijlstra Sep 5, 2025
@bedevere-app

bedevere-app Bot commented Sep 5, 2025

Copy link
Copy Markdown

GH-138561 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 5, 2025
@JelleZijlstra

JelleZijlstra commented Sep 5, 2025

Copy link
Copy Markdown
Member

@brianschubert are you interested in manually doing the 3.13 backport?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brianschubert

brianschubert commented Sep 5, 2025

Copy link
Copy Markdown
Contributor Author

@JelleZijlstra sure, taking a look now

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

brianschubert added a commit to brianschubert/cpython that referenced this pull request Sep 5, 2025
@brianschubert
[3.13] pythongh-138010: Fix __init_subclass__ forwarding by `warnin…
3df5a67
…gs.deprecated` (pythonGH-138210)

(cherry picked from commit e2c038f)

Co-authored-by: Brian Schubert <[email protected]>
@bedevere-app

bedevere-app Bot commented Sep 5, 2025

Copy link
Copy Markdown

GH-138564 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 5, 2025
@brianschubert brianschubert mentioned this pull request Sep 5, 2025
Backport __init_subclass__ fix for @deprecated from CPython python/typing_extensions#673
Merged
JelleZijlstra pushed a commit that referenced this pull request Sep 5, 2025
@brianschubert
[3.13] gh-138010: Fix __init_subclass__ forwarding by `warnings.dep…
cf62144
…recated` (GH-138210) (#138564)

(cherry picked from commit e2c038f)
lkollar pushed a commit to lkollar/cpython that referenced this pull request Sep 9, 2025
@brianschubert @lkollar
pythongh-138010: Fix __init_subclass__ forwarding by `warnings.depr…
1fd478d
…ecated` (python#138210)
JelleZijlstra pushed a commit that referenced this pull request Oct 8, 2025
@miss-islington
[3.14] gh-138010: Fix __init_subclass__ forwarding by `warnings.dep…
51dfc67
…recated` (GH-138210) (#138561)

gh-138010: Fix `__init_subclass__` forwarding by `warnings.deprecated` (GH-138210)
(cherry picked from commit e2c038f)

Co-authored-by: Brian Schubert <brianm.schubert@g
@rennerdo30 rennerdo30 mentioned this pull request Oct 21, 2026
[Historical PR] chore(deps): bump typing-extensions from 4.15.0 to 4.16.0 in /backend rennerdo30/watch-together#48
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@JelleZijlstra JelleZijlstra

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@brianschubert @JelleZijlstra
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.