mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
Preserve empty lines between try clause headers (#6759)
This commit is contained in:
parent
ba4c27598a
commit
fec6fc2fab
3 changed files with 64 additions and 4 deletions
|
@ -146,3 +146,23 @@ except (
|
|||
# comment
|
||||
):
|
||||
pass
|
||||
|
||||
|
||||
try:
|
||||
pass
|
||||
|
||||
finally:
|
||||
pass
|
||||
|
||||
|
||||
try:
|
||||
pass
|
||||
|
||||
except ZeroDivisonError:
|
||||
pass
|
||||
|
||||
else:
|
||||
pass
|
||||
|
||||
finally:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue