Skip to content

Allow ParamSpecArgs to be unpacked - #13459

Merged
JelleZijlstra merged 3 commits into
python:masterfrom
AlexWaygood:iterable-paramspec
Aug 20, 2022
Merged

JelleZijlstra merged 3 commits into
python:masterfrom
AlexWaygood:iterable-paramspec

Conversation

@AlexWaygood

@AlexWaygood AlexWaygood commented Aug 20, 2022 •

Copy link
Copy Markdown
Member

Description

If TypeVars with iterable bounds can be unpacked, so can ParamSpecArgs! This PR is a small extension of #13425 that allows that to happen.

Test Plan

I added a test that currently fails on master, but passes with this patch applied.

@AlexWaygood
AlexWaygood requested a review from sobolevn August 20, 2022 16:18
Comment thread test-data/unit/check-parameter-specification.test Outdated
@github-actions

This comment has been minimized.

Comment thread test-data/unit/check-parameter-specification.test
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@sobolevn

Copy link
Copy Markdown
Member

We would also need to test TypeVarTuple at some point 😄

@AlexWaygood

Copy link
Copy Markdown
Member Author

We would also need to test TypeVarTuple at some point 😄

But not today :)

@JelleZijlstra
JelleZijlstra merged commit 7606270 into python:master Aug 20, 2022
@AlexWaygood
AlexWaygood deleted the iterable-paramspec branch August 20, 2022 18:16
CheckmkCI pushed a commit to Checkmk/checkmk that referenced this pull request Sep 28, 2023
This should be possible since python/mypy#13459 (v0.990)

Change-Id: I19475f6470228a1af6c30ac9889e0c8e371d9fb6
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.

4 participants