ruff/crates/ruff_python_ast
Charlie Marsh ec2f229a45
Remove ExprContext from ComparableExpr (#7362)
`ComparableExpr` includes the `ExprContext` field on an expression, so,
e.g., the two tuples in `(a, b) = (a, b)` won't be considered equal.
Similarly, the tuples in `[(a, b) for (a, b) in c]` _also_ wouldn't be
considered equal. I find this behavior surprising, since
`ComparableExpr` is intended to allow you to compare two ASTs, but
`ExprContext` is really encoding information about the broader context
for the expression.
2023-09-14 15:40:02 +00:00
..
src Remove ExprContext from ComparableExpr (#7362) 2023-09-14 15:40:02 +00:00
tests Remove lexing from flake8-pytest-style (#6795) 2023-08-23 15:54:11 +00:00
Cargo.toml Introduce ArgOrKeyword to keep call parameter order (#7302) 2023-09-13 08:45:46 +00:00