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