Skip to content

Refactoring: use list comprehensions

Tim Jaacks requested to merge use-list-comprehensions into master

A list comprehension can create the list on one line, cutting out the clutter of declaring an empty list and then appending values.

See for reference: https://docs.sourcery.ai/Reference/Python/Default-Rules/list-comprehension/

Merge request reports

Loading