mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-27 10:26:20 +00:00
## Summary
Another statement on the same line as the docstring would previous make
the D204 (newline after docstring) fix fail:
```python
class StatementOnSameLineAsDocstring:
"After this docstring there's another statement on the same line separated by a semicolon." ;priorities=1
def sort_services(self):
pass
```
The fix handles this case manually:
```python
class StatementOnSameLineAsDocstring:
"After this docstring there's another statement on the same line separated by a semicolon."
priorities=1
def sort_services(self):
pass
```
Fixes #7088
## Test Plan
Added a new `D` test case
|
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||