Skip to content

Lenient handling of *tuple[Any, ...] (part 2) - #22006

Open
ilevkivskyi wants to merge 3 commits into
python:masterfrom
ilevkivskyi:fix-any-tvt-2
Open

ilevkivskyi wants to merge 3 commits into
python:masterfrom
ilevkivskyi:fix-any-tvt-2

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

Ref #19858

This (smaller) part handles various edge cases that should be handled leniently in presence of *tuple[Any, ...]: indexing and unpacking. Everything is straightforward, similar to first part #22001, the tests are focused on situations that previously gave errors.

cc @JukkaL

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

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

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.

1 participant