microsoft / pyright

Static Type Checker for Python
Other
12.7k stars 1.35k forks source link

Improved type narrowing in the fall-through case for sequence pattern… #8323

Closed erictraut closed 1 week ago

erictraut commented 1 week ago

…s when the pattern includes a star pattern and the subject type is a tuple with an indeterminate entry.

github-actions[bot] commented 1 week ago

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