Skip to content

gh-104935: typing: Fix interactions between @runtime_checkable and Generic - #104939

Merged
AlexWaygood merged 5 commits into
python:mainfrom
JelleZijlstra:is_protocol
May 25, 2023
Merged

gh-104935: typing: Fix interactions between @runtime_checkable and Generic#104939
AlexWaygood merged 5 commits into
python:mainfrom
JelleZijlstra:is_protocol

Conversation

@JelleZijlstra

@JelleZijlstraJelleZijlstra commented May 25, 2023

Copy link
Copy Markdown
Member

Comment threadLib/test/test_typing.py Outdated
Comment threadObjects/typevarobject.c Outdated
Comment threadLib/test/test_typing.py
JelleZijlstraand others added 3 commits May 25, 2023 09:12
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@JelleZijlstraJelleZijlstra changed the title gh-104935: Add back typing.Generic._is_protocolgh-104935: typing: Fix interactions between @runtime_checkable and GenericMay 25, 2023
@AlexWaygood
AlexWaygood removed the request for review from markshannonMay 25, 2023 16:22

@AlexWaygoodAlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

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

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @JelleZijlstra and @AlexWaygood, I had trouble checking out the 3.12 backport branch.
Please retry by removing and re-adding the "needs backport to 3.12" label.
Alternatively, you can backport using cherry_picker on the command line.
cherry_picker 2b7027d0b2ee2e102a24a0da27d01b8221f9351c 3.12

@AlexWaygoodAlexWaygood added needs backport to 3.12 only security fixes and removed needs backport to 3.12 only security fixes labels May 25, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

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

@JelleZijlstraJelleZijlstra removed the needs backport to 3.12 only security fixes label May 25, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 25, 2023
…` and `Generic` (pythonGH-104939)
---------
(cherry picked from commit 2b7027d)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-104941 is a backport of this pull request to the 3.12 branch.

@JelleZijlstraJelleZijlstra added the needs backport to 3.12 only security fixes label May 25, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

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

@JelleZijlstra
JelleZijlstra deleted the is_protocol branch May 25, 2023 16:44
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 25, 2023
…` and `Generic` (pythonGH-104939)
---------
(cherry picked from commit 2b7027d)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@JelleZijlstra

Copy link
Copy Markdown
MemberAuthor

oops

@AlexWaygood

Copy link
Copy Markdown
Member

Yeah you made @miss-islington force-push to her PR branch!

AlexWaygood added a commit that referenced this pull request May 25, 2023
…e` and `Generic` (GH-104939) (#104941)
gh-104935: typing: Fix interactions between `@runtime_checkable` and `Generic` (GH-104939)
---------
(cherry picked from commit 2b7027d)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@JelleZijlstra
JelleZijlstra restored the is_protocol branch September 10, 2024 23:37
@ZeroIntensityZeroIntensity removed the needs backport to 3.12 only security fixes label Feb 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@JelleZijlstra@miss-islington@bedevere-bot@AlexWaygood@ZeroIntensity