Skip to content

Special-case constructor for tuple types#21502

Open
ilevkivskyi wants to merge 1 commit into
python:masterfrom
ilevkivskyi:tuple-sub-constructor
Open

Special-case constructor for tuple types#21502
ilevkivskyi wants to merge 1 commit into
python:masterfrom
ilevkivskyi:tuple-sub-constructor

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

Fixes #19106

Tuple constructor is quite imprecise, and I don't think we can get anything decent without some special-casing, so I am doing just that, adding one more special_sig.

@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.

incorrect inference of user-defined variadic tuple subtype instances

1 participant