mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-09 20:06:39 +00:00
![]() ## Summary
The following code was previously leading to unstable formatting:
```python
try:
try:
pass
finally:
print(1) # issue7208
except A:
pass
```
The comment would be formatted as a trailing comment of `try` which is
unstable as an end-of-line comment gets two extra whitespaces.
This was originally found in
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml |