Skip to content

Commit 022eba0

Browse files
leakechenryiii
andauthored
Combining list by unpacking other lists rather than using +.
Co-authored-by: Henry Schreiner <[email protected]>
1 parent 75f86bd commit 022eba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind11_mkdoc/mkdoc_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def process_comment(comment):
213213
new_lines.append("")
214214

215215
idx = rm_lines[-1]
216-
lines = lines[0:idx] + new_lines + lines[idx:]
216+
lines = [*lines[0:idx], *new_lines, *lines[idx:]]
217217
s = "\n".join(lines)
218218

219219
# Remove class and struct tags

0 commit comments

Comments
 (0)