KEMBAR78
Fix crash for callable with *args and suffix against Any by ilevkivskyi · Pull Request #18781 · python/mypy · GitHub
Skip to content

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.

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