Skip to content

Commit 52c6e5f

Browse files
committed
simplify
1 parent abfdc87 commit 52c6e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textual/_unique.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ def unique_ordered(*values: Iterable[T]) -> list[T]:
1919
A list of values, where each value appears exactly once, in the order they were given.
2020
2121
"""
22-
unique_objects = list(dict.fromkeys(chain(*values)))
22+
unique_objects = list(dict.fromkeys(chain.from_iterable(values)))
2323
return unique_objects

0 commit comments

Comments
 (0)