Skip to content

Allow mixing ParamSpec and TypeVarTuple in Generic #17450

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2024

Conversation

ilevkivskyi
Copy link
Member

Fixes #16696
Fixes #16695

I think there are no good reasons to not allow this anymore. Also I am using this opportunity to tighten a bit invalid instances/aliases where a regular type variable is replaced with parameters and vice versa.

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@ilevkivskyi ilevkivskyi merged commit 69042d3 into python:master Jun 29, 2024
18 checks passed
@ilevkivskyi ilevkivskyi deleted the allow-paramspec-tvt-mix branch June 29, 2024 19:46
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.

(🎁) Support ParamSpec and Unpack in Generic (🐞) Crash with ParamSpec and Unpack in Generic
1 participant