KEMBAR78
Fix crash involving recursive union of tuples by ilevkivskyi · Pull Request #17353 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #17236

It turns out we were calculating tuple fallbacks where we don't really need to. We can rely on the fact that tuple fallback is trivial for non-trivial partial fallbacks to simplify the logic and avoid the infinite recursion.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 9, 2024

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

@ilevkivskyi ilevkivskyi merged commit 5ae9e69 into python:master Jun 9, 2024
@ilevkivskyi ilevkivskyi deleted the fix-rec-tup-union branch June 9, 2024 22:32
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.

Segmentation fault with recursive type

1 participant