Skip to content

Commit 4430162

Browse files
committed
Use iterable unpacking instead of list concatenation (RUF005)
1 parent 89cdc1f commit 4430162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def test_hook_new_field_without_alias(self):
301301
"""
302302

303303
def hook(cls, attribs):
304-
return list(attribs) + [
304+
return [*attribs,
305305
attr.Attribute(
306306
name="_extra",
307307
default=0,

0 commit comments

Comments
 (0)