Skip to content

bpo-46643: Fix stringized P.args/P.kwargs with get_type_hints#31238

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
GBeauregard:fix-paramspec-stringify
Mar 3, 2022
Merged

bpo-46643: Fix stringized P.args/P.kwargs with get_type_hints#31238
JelleZijlstra merged 2 commits into
python:mainfrom
GBeauregard:fix-paramspec-stringify

Conversation

@GBeauregard

@GBeauregard GBeauregard commented Feb 9, 2022

Copy link
Copy Markdown
Contributor

There's discussion since fixing this also allows using P.args and P.kwargs inside typing.Annotated. See the bpo issue. We should wait for that discussion to resolve first.

https://bugs.python.org/issue46643

@TheOnlyWayUp TheOnlyWayUp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread Lib/test/test_typing.py
@GBeauregard

Copy link
Copy Markdown
Contributor Author

We should be able to move forward with this now re: https://mail.python.org/archives/list/typing-sig@python.org/thread/WZ4BCFO4VZ7U4CZ4FSDQNFAKPG2KOGCL/

@GBeauregard GBeauregard marked this pull request as ready for review March 1, 2022 17:31

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

Thanks! @gvanrossum planning to merge this small typing change.

@JelleZijlstra JelleZijlstra self-assigned this Mar 2, 2022
@JelleZijlstra JelleZijlstra added the needs backport to 3.10 only security fixes label Mar 3, 2022
@JelleZijlstra JelleZijlstra merged commit 75d2d94 into python:main Mar 3, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

GH-31646 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 3, 2022
…GH-31238)

(cherry picked from commit 75d2d94)

Co-authored-by: Gregory Beauregard <greg@greg.red>
miss-islington added a commit that referenced this pull request Mar 3, 2022
(cherry picked from commit 75d2d94)

Co-authored-by: Gregory Beauregard <greg@greg.red>
@sweeneyde

sweeneyde commented Mar 3, 2022

Copy link
Copy Markdown
Member

sphinx-lint was added after the most recent CI job ran on this PR, so it looks like we need to add a newline at the end of the NEWS entry to fix Azure Pipelines check.

Blurb-it was fixed at python/blurb_it#256.

@JelleZijlstra

JelleZijlstra commented Mar 3, 2022 via email

Copy link
Copy Markdown
Member

@JelleZijlstra

Copy link
Copy Markdown
Member

Fix in #31651

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants