Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.11] gh-88965: typing: fix type substitution of a list of types after initialParamSpec substitution (GH-102808)#102957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedMar 23, 2023
edited by bedevere-bot
Loading

Previously, this used to fail:

fromtypingimport*T=TypeVar("T")P=ParamSpec("P")classX(Generic[P]):f:Callable[P,int]Y=X[[int,T]]Z=Y[str]

(cherry picked from commitadb0621)

Co-authored-by: Nikita Sobolevmail@sobolevn.me
Co-authored-by: Alex WaygoodAlex.Waygood@Gmail.com

…r initial `ParamSpec` substitution (pythonGH-102808)Previously, this used to fail:```pyfrom typing import *T = TypeVar("T")P = ParamSpec("P")class X(Generic[P]):    f: Callable[P, int]Y = X[[int, T]]Z = Y[str]```(cherry picked from commitadb0621)Co-authored-by: Nikita Sobolev <mail@sobolevn.me>Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@AlexWaygoodAlexWaygood self-assigned thisMar 23, 2023
@miss-islingtonmiss-islington merged commit1645a40 intopython:3.11Mar 23, 2023
@miss-islingtonmiss-islington deleted the backport-adb0621-3.11 branchMarch 23, 2023 16:54
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AlexWaygoodAlexWaygoodAlexWaygood approved these changes

@gvanrossumgvanrossumAwaiting requested review from gvanrossumgvanrossum is a code owner

@Fidget-SpinnerFidget-SpinnerAwaiting requested review from Fidget-Spinner

@JelleZijlstraJelleZijlstraAwaiting requested review from JelleZijlstraJelleZijlstra is a code owner

Assignees

@AlexWaygoodAlexWaygood

Labels

stdlibStandard Library Python modules in the Lib/ directorytopic-typingtype-bugAn unexpected behavior, bug, or error

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@miss-islington@AlexWaygood@bedevere-bot@sobolevn

[8]ページ先頭

©2009-2025 Movatter.jp