ruff/crates/ruff_linter
Charlie Marsh c944d23053
Avoid nested quotations in auto-quoting fix (#9168)
## Summary

Given `Callable[[Callable[_P, _R]], Callable[_P, _R]]` from the
originating issue, when quoting `Callable`, we quoted the inner
`[Callable[_P, _R]]`, and then created a separate edit for the outer
`Callable`. Since there's an extra level of nesting in the subscript,
the edit for `[Callable[_P, _R]]` correctly did _not_ expand to the
entire expression. However, in this case, we should discard the inner
edit, since the expression is getting quoted by the outer edit anyway.

Closes https://github.com/astral-sh/ruff/issues/9162.
2023-12-17 12:53:58 +00:00
..
resources/test Avoid nested quotations in auto-quoting fix (#9168) 2023-12-17 12:53:58 +00:00
src Avoid nested quotations in auto-quoting fix (#9168) 2023-12-17 12:53:58 +00:00
Cargo.toml Bump version to v0.1.8 (#9116) 2023-12-13 13:19:51 -05:00