ruff
[ty] Add support for narrowing on tuple match cases
#25493
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
15
Changes
View On
GitHub
[ty] Add support for narrowing on tuple match cases
#25493
charliermarsh
merged 15 commits into
main
from
charlie/pattern-match
astral-sh-bot
added
ty
charliermarsh
changed the title
[ty] Narrow exact sequence patterns
[ty] Add support for narrowing on tuple match cases
29 days ago
charliermarsh
force pushed
from
d5ead3ff
to
974d660e
29 days ago
charliermarsh
force pushed
from
974d660e
to
2762e1e2
29 days ago
charliermarsh
force pushed
from
1a223f40
to
d71e824d
29 days ago
charliermarsh
force pushed
from
d71e824d
to
bec667db
29 days ago
charliermarsh
force pushed
from
bec667db
to
4f94f764
29 days ago
charliermarsh
force pushed
from
4f94f764
to
4cccf003
29 days ago
charliermarsh
force pushed
from
4cccf003
to
84e27558
29 days ago
charliermarsh
force pushed
from
84e27558
to
26466d92
29 days ago
charliermarsh
force pushed
from
2af8f755
to
4a1649ae
26 days ago
Base automatically changed from
charlie/tuple-match
to
main
25 days ago
charliermarsh
force pushed
from
90ab3f92
to
c87d1de4
25 days ago
charliermarsh
assigned
AlexWaygood
25 days ago
charliermarsh
marked this pull request as ready for review
25 days ago
charliermarsh
requested a review
from
carljm
25 days ago
charliermarsh
requested a review
from
AlexWaygood
25 days ago
charliermarsh
requested a review
from
sharkdp
25 days ago
charliermarsh
requested a review
from
dcreager
25 days ago
charliermarsh
requested a review
from
ibraheemdev
25 days ago
charliermarsh
marked this pull request as draft
25 days ago
charliermarsh
force pushed
from
c87d1de4
to
256ced09
25 days ago
AlexWaygood
commented on 2026-06-03
charliermarsh
force pushed
from
9c426a6e
to
5be0138c
25 days ago
charliermarsh
marked this pull request as ready for review
25 days ago
astral-sh-bot
requested a review
from
AlexWaygood
25 days ago
charliermarsh
force pushed
from
6dc18f40
to
a0111a4b
25 days ago
charliermarsh
changed the base branch from
main
to
charlie/cache-pattern-match-narrowing
25 days ago
charliermarsh
force pushed
from
a0111a4b
to
2b8d562e
25 days ago
charliermarsh
marked this pull request as draft
25 days ago
charliermarsh
force pushed
from
2b8d562e
to
2a481f92
25 days ago
charliermarsh
force pushed
from
2a481f92
to
5c5851ee
25 days ago
charliermarsh
force pushed
from
5c5851ee
to
5bfd20b1
25 days ago
charliermarsh
force pushed
from
5bfd20b1
to
e7ffe5b0
25 days ago
charliermarsh
marked this pull request as ready for review
25 days ago
Base automatically changed from
charlie/cache-pattern-match-narrowing
to
main
25 days ago
charliermarsh
force pushed
from
e7ffe5b0
to
cf8efcd2
25 days ago
AlexWaygood
commented on 2026-06-04
AlexWaygood
commented on 2026-06-04
AlexWaygood
commented on 2026-06-04
AlexWaygood
commented on 2026-06-04
carljm
removed review request
from
carljm
25 days ago
charliermarsh
force pushed
from
37e0039a
to
6ab34aca
24 days ago
AlexWaygood
approved these changes on 2026-06-06
charliermarsh
force pushed
from
6ab34aca
to
afa86ebe
22 days ago
[ty] Narrow exact sequence patterns
f47d2cff
[ty] Unify definite sequence pattern analysis
7785d747
[ty] Move match pattern types out of reachability
49a2f859
Add star support; clean up tests
03c1144f
Add more tests
5502a521
Review feedback
8ee062a1
Review feedback
99307da0
[ty] Avoid collecting sequence pattern types
09876b61
[ty] Store sequence pattern predicates in a boxed slice
0e340418
[ty] Make exact sequence length checks const
e35ede45
[ty] Build sequence pattern predicates in one pass
eabd9296
[ty] Name star pattern predicates explicitly
8aa39640
[ty] Test exact sequence exclusions for text and bytes
e7ccd79f
[ty] Explain necessary pattern types with an example
210840de
AlexWaygood
approved these changes on 2026-06-06
charliermarsh
force pushed
from
afa86ebe
to
210840de
22 days ago
Rewrite by human hand
6bc59f91
charliermarsh
merged
757d823a
into main
22 days ago
charliermarsh
deleted the charlie/pattern-match branch
22 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
AlexWaygood
sharkdp
dcreager
ibraheemdev
Assignees
AlexWaygood
Labels
ty
Milestone
No milestone
Login to write a write a comment.
Login via GitHub