Skip to content

(PYL-R1721) Unnecessary use of comprehension #12

@avsthiago

Description

@avsthiago

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions