Skip to content

[3.15] gh-151665: Fix inspect.signature() on type alias and type parameter e…#151787

Merged
JelleZijlstra merged 1 commit into
python:3.15from
deadlovelll:gh-151665-inspect-format-param-3.15
Jun 21, 2026
Merged

[3.15] gh-151665: Fix inspect.signature() on type alias and type parameter e…#151787
JelleZijlstra merged 1 commit into
python:3.15from
deadlovelll:gh-151665-inspect-format-param-3.15

Conversation

@deadlovelll

Copy link
Copy Markdown
Contributor

Fixes the inspect.signature() failure on the lazy evaluators of type aliases and type parameters, whose hidden .format parameter is now shown as format. This fix intended only for 3.15 and lower versions

For more details see gh-151665

@deadlovelll deadlovelll changed the title gh-151665: Fix inspect.signature() on type alias and type parameter e… [3.15] gh-151665: Fix inspect.signature() on type alias and type parameter e… Jun 20, 2026
@JelleZijlstra JelleZijlstra added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jun 20, 2026

@JelleZijlstra JelleZijlstra 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.

Thank you! Looks good, but let's get the main branch fix in first.

@JelleZijlstra JelleZijlstra merged commit 453714a into python:3.15 Jun 21, 2026
63 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

@miss-islington-app

Copy link
Copy Markdown

Sorry, @deadlovelll 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 453714a2dc0d16e6e6b8cff70801dfc1284bf74d 3.13

@bedevere-app

bedevere-app Bot commented Jun 21, 2026

Copy link
Copy Markdown

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 21, 2026
@JelleZijlstra

Copy link
Copy Markdown
Member

Thanks @deadlovelll! Are you interested in adding the manual 3.13 backport?

JelleZijlstra pushed a commit that referenced this pull request Jun 21, 2026
…meter evaluators (GH-151787) (#151880)

[3.15] gh-151665: Fix inspect.signature() on type alias and type parameter evaluators (GH-151787)
(cherry picked from commit 453714a)

Co-authored-by: Timofei <128279579+deadlovelll@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs backport to 3.13 bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants