PERF401: fix

This commit is contained in:
Jörg Thalheim
2025-08-20 19:56:18 +02:00
parent 136acc7901
commit c65bb0b1ce
9 changed files with 75 additions and 79 deletions

View File

@@ -133,12 +133,7 @@ def list_difference(all_items: list, filter_items: list) -> list:
"""
# Unmerge the lists
res = []
for value in all_items:
if value not in filter_items:
res.append(value)
return res
return [value for value in all_items if value not in filter_items]
def find_duplicates(string_list: list[str]) -> list[str]: