ruff
[ty] Add support for narrowing on tuple match cases
#25493
Merged

[ty] Add support for narrowing on tuple match cases #25493

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

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone