ruff/crates
Dhruv Manilawala 62c7d8f6ba
[red-knot] Add control flow support for match statement (#13241)
## Summary

This PR adds support for control flow for match statement.

It also adds the necessary infrastructure required for narrowing
constraints in case blocks and implements the logic for
`PatternMatchSingleton` which is either `None` / `True` / `False`. Even
after this the inferred type doesn't get simplified completely, there's
a TODO for that in the test code.

## Test Plan

Add test cases for control flow for (a) when there's a wildcard pattern
and (b) when there isn't. There's also a test case to verify the
narrowing logic.

---------

Co-authored-by: Carl Meyer <carl@astral.sh>
2024-09-10 02:14:19 +05:30
..
red_knot [red-knot] Add docs on using RAYON_NUM_THREADS for better logging (#13140) 2024-08-28 17:14:56 +01:00
red_knot_python_semantic [red-knot] Add control flow support for match statement (#13241) 2024-09-10 02:14:19 +05:30
red_knot_server [red-knot] Support untitled files in the server (#13044) 2024-08-23 12:47:35 +05:30
red_knot_wasm [red-knot] Improve the accuracy of the unresolved-import check (#13055) 2024-08-27 14:17:22 +01:00
red_knot_workspace [red-knot] fix scope inference with deferred types (#13204) 2024-09-03 11:20:43 -07:00
ruff Bump version to 0.6.4 (#13253) 2024-09-05 21:05:15 +05:30
ruff_benchmark [red-knot] Add definitions and limited type inference for exception handlers (#13267) 2024-09-09 07:35:15 -04:00
ruff_cache Fix cache key collisions for paths with separators (#12159) 2024-07-03 07:36:46 -05:00
ruff_db [red-knot] support deferred evaluation of type expressions (#13131) 2024-08-28 11:41:01 -07:00
ruff_dev Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_diagnostics [Minor typo] Fix article in "an fix" (#12797) 2024-08-10 21:22:00 -04:00
ruff_formatter Upgrade to Rust 1.80 (#12586) 2024-07-30 19:18:08 +00:00
ruff_index [red-knot] small efficiency improvements and bugfixes to use-def map building (#12373) 2024-07-18 09:24:58 -07:00
ruff_linter ERA001: Ignore script-comments with multiple end-tags (#13283) 2024-09-09 19:47:39 +01:00
ruff_macros Drop deprecated nursery rule group (#10172) 2024-06-27 13:44:11 +02:00
ruff_notebook Fallback to kernelspec to check if it's a Python notebook (#12875) 2024-08-14 12:36:09 +05:30
ruff_python_ast [red-knot] Add control flow support for match statement (#13241) 2024-09-10 02:14:19 +05:30
ruff_python_ast_integration_tests [red-knot] Add control flow support for match statement (#13241) 2024-09-10 02:14:19 +05:30
ruff_python_codegen Implement iter(), len() and is_empty() for all display-literal AST nodes (#12807) 2024-08-12 10:39:28 +00:00
ruff_python_formatter Implement AstNode for Identifier (#13207) 2024-09-02 16:27:12 +05:30
ruff_python_index Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
ruff_python_literal Remove some unused pub functions (#11576) 2024-05-28 09:56:51 -04:00
ruff_python_parser Upgrade to Rust 1.81 (#13265) 2024-09-06 15:09:09 +02:00
ruff_python_resolver chore(deps): update rust crate insta to v1.38.0 (#10701) 2024-04-01 15:44:30 +00:00
ruff_python_semantic Optimize some SemanticModel methods (#13091) 2024-09-02 10:03:52 +01:00
ruff_python_stdlib Improve detection of whether a symbol refers to a builtin exception (#13215) 2024-09-03 10:33:03 +00:00
ruff_python_trivia refactor: Return copied TextRange in CommentRanges iterator (#13281) 2024-09-08 13:17:37 +02:00
ruff_python_trivia_integration_tests Build CommentRanges outside the parser (#11792) 2024-06-09 09:55:17 +00:00
ruff_server Fix configuration inheritance for configurations specified in the LSP settings (#13285) 2024-09-09 19:46:39 +01:00
ruff_source_file Add API to emit type-checking diagnostics (#12988) 2024-08-20 07:22:30 +00:00
ruff_text_size Upgrade to Rust 1.79 (#11875) 2024-06-17 07:15:10 +01:00
ruff_wasm Bump version to 0.6.4 (#13253) 2024-09-05 21:05:15 +05:30
ruff_workspace Fix configuration inheritance for configurations specified in the LSP settings (#13285) 2024-09-09 19:46:39 +01:00