ruff/crates/ruff_linter
Junhson Jean-Baptiste fa28dc5ccf
[internal] Move Linter OperatorPrecedence into ruff_python_ast crate (#16162)
## Summary

This change begins to resolve #16071 by moving the `OperatorPrecedence`
structs from the `ruff_python_linter` crate into `ruff_python_ast`. This
PR also implements `precedence()` methods on the `Expr` and `ExprRef`
enums.

## Test Plan

Since this change mainly shifts existing logic, I didn't add any
additional tests. Existing tests do pass.
2025-02-14 15:55:07 +01:00
..
resources [pyupgrade] Unwrap unary expressions correctly (UP018) (#15919) 2025-02-14 08:42:00 +01:00
src [internal] Move Linter OperatorPrecedence into ruff_python_ast crate (#16162) 2025-02-14 15:55:07 +01:00
Cargo.toml Bump version to 0.9.6 (#16074) 2025-02-10 18:14:04 +05:30