ruff
285d6410 - [ty] Avoid double-analyzing tuple in `Final` subscript (#21828)

Commit
81 days ago
[ty] Avoid double-analyzing tuple in `Final` subscript (#21828) ## Summary As-is, a single-element tuple gets destructured via: ```rust let arguments = if let ast::Expr::Tuple(tuple) = slice { &*tuple.elts } else { std::slice::from_ref(slice) }; ``` But then, because it's a single element, we call `infer_annotation_expression_impl`, passing in the tuple, rather than the first element. Closes https://github.com/astral-sh/ty/issues/1793. Closes https://github.com/astral-sh/ty/issues/1768. --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Author
Parents
Loading