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. Not Preferred: ```python states = [ ('AL', 'Alabama'), ('AK', 'Alaska'), ('AZ', …
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/ab-anand/Filezen/issue/PYL-R1721/occurrences/
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. Not Preferred: ```python states = [ ('AL', 'Alabama'), ('AK', 'Alaska'), ('AZ', …Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/ab-anand/Filezen/issue/PYL-R1721/occurrences/