Skip to content

Conversation

@Daraan
Copy link
Contributor

@Daraan Daraan commented Nov 27, 2024

Fixes that this code sample throws an error for 3.10:

P = ParamSpec("P")
typing_extensions.Concatenate[int, P][typing.Concatenate[int, P]]

TypeError: The last parameter to Concatenate should be a ParamSpec variable or ellipsis.

@JelleZijlstra
Copy link
Member

Thanks, could you add a changelog entry? Something like "Fix errors on Python 3.10 when typing.Concatenate and typing_extensions.Concatenate are used together."

@JelleZijlstra JelleZijlstra merged commit f9a2055 into python:main Dec 13, 2024
21 checks passed
@Daraan Daraan deleted the Concatenate/typing-compatibility branch December 13, 2024 08:33
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.

2 participants