ruff/crates
Shunsuke Shibayama 462adfd0e6
[ty] fix incorrect member narrowing (#19802)
## Summary

Reported in:
https://github.com/astral-sh/ruff/pull/19795#issuecomment-3161981945

If a root expression is reassigned, narrowing on the member should be
invalidated, but there was an oversight in the current implementation.

This PR fixes that, and also removes some unnecessary handling.

## Test Plan

New tests cases in `narrow/conditionals/nested.md`.
2025-08-07 16:04:07 -07:00
..
ruff Bump 0.12.8 (#19813) 2025-08-07 13:52:16 -05:00
ruff_annotate_snippets Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_benchmark [ty] Remove special casing for tuple addition (#19636) 2025-07-30 16:25:42 +00:00
ruff_cache
ruff_db Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_dev Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_diagnostics [ty] Implement diagnostic caching (#19605) 2025-07-30 11:04:34 +01:00
ruff_formatter Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_graph [ty] Remove KnownModule::is_enum (#19681) 2025-08-01 10:31:12 +02:00
ruff_index Update Rust toolchain to 1.88 and MSRV to 1.86 (#19011) 2025-06-28 20:24:00 +02:00
ruff_linter Bump 0.12.8 (#19813) 2025-08-07 13:52:16 -05:00
ruff_macros [ty] Support LSP client settings (#19614) 2025-08-06 18:37:21 +05:30
ruff_memory_usage [ty] Avoid overcounting shared memory usage (#19773) 2025-08-06 15:32:02 -04:00
ruff_notebook
ruff_options_metadata Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_python_ast Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_python_ast_integration_tests Disallow implicit concatenation of t-strings and other string types (#19485) 2025-07-27 12:41:03 +00:00
ruff_python_codegen Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_python_formatter Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_python_index
ruff_python_literal
ruff_python_parser Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_python_semantic Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_python_stdlib
ruff_python_trivia
ruff_python_trivia_integration_tests
ruff_server Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_source_file Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ruff_text_size [ty] Add environment variable to dump Salsa memory usage stats (#18928) 2025-06-26 21:27:51 +00:00
ruff_wasm Bump 0.12.8 (#19813) 2025-08-07 13:52:16 -05:00
ruff_workspace [flake8_import_conventions] Avoid false positives for NFKC-normalized __debug__ import aliases in ICN001 (#19411) 2025-08-06 06:42:51 +00:00
ty Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ty_combine [ty] Support LSP client settings (#19614) 2025-08-06 18:37:21 +05:30
ty_ide Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ty_project Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ty_python_semantic [ty] fix incorrect member narrowing (#19802) 2025-08-07 16:04:07 -07:00
ty_server Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ty_static Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ty_test Update Rust toolchain to 1.89 (#19807) 2025-08-07 18:21:50 +02:00
ty_vendored [ty] Improve debuggability of protocol types (#19662) 2025-08-01 15:16:13 +01:00
ty_wasm [ty] Add ty.inlayHints.variableTypes server option (#19780) 2025-08-07 19:16:51 +05:30