KEMBAR78
Allow mixing ParamSpec and TypeVarTuple in Generic by ilevkivskyi · Pull Request #17450 · python/mypy · GitHub
Skip to content

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.

@github-actions
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
@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