Skip to content
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

Correctly handle runtime type applications of variadic types #16240

Merged
merged 2 commits into from Oct 15, 2023

Conversation

ilevkivskyi
Copy link
Member

This adds some missing pieces to runtime type application handling for both TypeVarTuple and ParamSpec. Everything is straightforward (maybe a bit hacky, but we already import typeanal in checkexpr for similar purposes, e.g. type aliases in runtime context).

Fixes #14799

@github-actions

This comment has been minimized.

@ilevkivskyi
Copy link
Member Author

This (and other 3 PRs on variadic types) are open for a week now. I will start merging them without review, one per day, starting from the most trivial one.

@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 ff9deb3 into python:master Oct 15, 2023
18 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-tvt-runtime-type-app branch October 15, 2023 20:44
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.

ParamSpec readability simplification causes weird behavior
1 participant