Pattern: Unnecessary comprehension
Issue: -
Emitted when pylint finds list-, set- or dict-comprehensions, that are unnecessary and can be rewritten with the list-, set- or dict-constructors.
Example of incorrect code:
[x for x in iterable]
Example of correct code:
list(iterable)