ruff/crates/ruff_linter
Victor Hugo Gomes f4c6ff3f68
[pylint] Fix PLC2801 autofix creating a syntax error (#18857)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary
This PR fixes `PLC2801` autofix creating a syntax error due to lack of
padding if it is directly after a keyword.

Fixes https://github.com/astral-sh/ruff/issues/18813
<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan
Add regression test
<!-- How was it tested? -->
2025-06-23 10:15:53 -04:00
..
resources [pylint] Fix PLC2801 autofix creating a syntax error (#18857) 2025-06-23 10:15:53 -04:00
src [pylint] Fix PLC2801 autofix creating a syntax error (#18857) 2025-06-23 10:15:53 -04:00
Cargo.toml Bump 0.12.0 (#18724) 2025-06-17 11:05:59 -04:00