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

Fix crash for callable with *args and suffix against Any #18781

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

ilevkivskyi
Copy link
Member

Fixes #18780

Fix is trivial: handle a missing case. Note I re-use flatten_nested_tuples() out of laziness. In theory, there should be at most one level of nesting at this point, after which we should put an assert (and IIRC we do something like this in other places). But I think it is not worth the effort here, as this is a quite niche edge case anyway.

Copy link
Contributor

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

@JukkaL JukkaL merged commit 662bbeb into python:master Mar 11, 2025
18 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-tvt-suffix-any branch March 11, 2025 11:10
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.

Crash due to decorator and generator interaction
2 participants