ruff
[ty] Support narrowing on lengths
#25347
Merged

[ty] Support narrowing on lengths #25347

charliermarsh merged 13 commits into main from charlie/tuple-match
charliermarsh
astral-sh-bot astral-sh-bot added ty
astral-sh-bot
astral-sh-bot
charliermarsh charliermarsh force pushed from 0fad610b to da43125b 28 days ago
astral-sh-bot
charliermarsh charliermarsh marked this pull request as ready for review 28 days ago
charliermarsh charliermarsh requested a review from carljm carljm 28 days ago
charliermarsh charliermarsh requested a review from AlexWaygood AlexWaygood 28 days ago
charliermarsh charliermarsh requested a review from sharkdp sharkdp 28 days ago
charliermarsh charliermarsh requested a review from dcreager dcreager 28 days ago
charliermarsh charliermarsh requested a review from ibraheemdev ibraheemdev 28 days ago
charliermarsh charliermarsh requested a review from MichaReiser MichaReiser 28 days ago
charliermarsh charliermarsh assigned AlexWaygood AlexWaygood 28 days ago
charliermarsh charliermarsh marked this pull request as draft 27 days ago
Base automatically changed from charlie/non-never to main 21 days ago
charliermarsh charliermarsh force pushed from da43125b to 28e4859f 21 days ago
charliermarsh charliermarsh force pushed from 28e4859f to 4946dbbc 21 days ago
charliermarsh charliermarsh force pushed from 4946dbbc to d74c6e42 20 days ago
charliermarsh charliermarsh marked this pull request as ready for review 20 days ago
charliermarsh
charliermarsh commented on 2026-05-30
charliermarsh charliermarsh changed the title [ty] Support narrowing on tuple lengths [ty] Support narrowing on lengths 20 days ago
charliermarsh charliermarsh marked this pull request as draft 19 days ago
charliermarsh
MichaReiser MichaReiser removed review request from MichaReiser MichaReiser 17 days ago
charliermarsh First pass
4cf3e7d8
charliermarsh Avoid applying to mutable types
01c77912
charliermarsh Support literals
2fb400b7
charliermarsh Pare back
c45f89e4
charliermarsh Add regression tests for stale len constraints
e9b6f810
charliermarsh Avoid persisting len constraints for mutable types
33c6e4ff
charliermarsh Fold len regression tests into narrowing examples
71205632
charliermarsh Use two-element union constructor for len narrowing
814ecbce
charliermarsh Clarify symmetric len comparison narrowing
06e0ff96
charliermarsh charliermarsh force pushed from aea236d7 to 06e0ff96 17 days ago
charliermarsh Allow exact length narrowing for mutable values
f971eccd
charliermarsh Defer tuple length intersection simplification
f19c1f0e
charliermarsh Simplify exact length narrowing
d4c3c46f
charliermarsh Clean up exact length narrowing
0af8378b
charliermarsh charliermarsh marked this pull request as ready for review 17 days ago
AlexWaygood
AlexWaygood approved these changes on 2026-06-03
charliermarsh charliermarsh merged 99b34e96 into main 17 days ago
charliermarsh charliermarsh deleted the charlie/tuple-match branch 17 days ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone