mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
ruff: Fix PLR6104 Use += to perform an augmented assignment directly.
This is a preview rule, not yet enabled by default. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b96feb34f6
commit
1e9b6445a9
@@ -161,7 +161,7 @@ def add_md(mode: str, text: str) -> str:
|
||||
start = random.randrange(len(vals))
|
||||
end = random.randrange(len(vals) - start) + start
|
||||
vals[start] = mode + vals[start]
|
||||
vals[end] = vals[end] + mode
|
||||
vals[end] += mode
|
||||
|
||||
return " ".join(vals).strip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user