Skip to content

Commit c830a19

Browse files
committed
🚨 fix new RUF005 errors in tool/
1 parent 7439eab commit c830a19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎tool/testgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _union(*types: str) -> str:
145145

146146
if other:
147147
if other[0] == f"{NP}.bool":
148-
combined = [other[0]] + combined + other[1:]
148+
combined = [other[0], *combined, *other[1:]]
149149
else:
150150
combined.extend(other)
151151

‎tool/ufunc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def main(args: Sequence[str] | None = None, /) -> int:
214214
print(
215215
tabulate.tabulate(
216216
[list(map(as_code, entry.values())) for entry in data],
217-
headers=[as_code("ufunc")] + list(map(as_code, data[0]))[1:],
217+
headers=[as_code("ufunc"), *list(map(as_code, data[0]))[1:]],
218218
tablefmt=namespace.format,
219219
)
220220
# needed for consistent ordering of string-like types

0 commit comments

Comments
 (0)