You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Description
It is unnecessary to use a comprehension just to loop over the
iterable
and create alist
/set
/dict
out of it. Python has a specialized set of tools for this task: thelist
/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/
The text was updated successfully, but these errors were encountered: