mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 15:44:22 -05:00
Preserve multiline implicit concatenated strings in docstring positions (#15126)
This commit is contained in:
@@ -195,3 +195,20 @@ r"aaaaaaaaa" r"bbbbbbbbbbbbbbbbbbbb"
|
||||
f"""aaaa{
|
||||
10}aaaaa""" fr"""bbbbbbbbbbbbbbbbbbbb"""
|
||||
)
|
||||
|
||||
# In docstring positions
|
||||
def docstring():
|
||||
(
|
||||
r"aaaaaaaaa"
|
||||
"bbbbbbbbbbbbbbbbbbbb"
|
||||
)
|
||||
|
||||
def docstring_flat():
|
||||
(
|
||||
r"aaaaaaaaa" r"bbbbbbbbbbbbbbbbbbbb"
|
||||
)
|
||||
|
||||
def docstring_flat_overlong():
|
||||
(
|
||||
r"aaaaaaaaa" r"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user