Description
It is unnecessary to use a comprehension just to loop over the iterable and create a list/set/dict out of it. Python has a specialized set of tools for this task: the list/set/dict constructors, which are faster and more readable.
Occurrences
There are 4 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/avsthiago/deepbee-source/issue/PYL-R1721/occurrences/
Validate if we really need the list() that deep-source suggests using.
Description
It is unnecessary to use a comprehension just to loop over the
iterableand create alist/set/dictout of it. Python has a specialized set of tools for this task: thelist/set/dictconstructors, which are faster and more readable.Occurrences
There are 4 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/avsthiago/deepbee-source/issue/PYL-R1721/occurrences/
Validate if we really need the
list()that deep-source suggests using.