Skip to content

Warn against quadratic list summation #5073

@hauntsaninja

Description

@hauntsaninja

I can't find a linter that warns me about sum(list_of_lists, []). Basically any time the default arg of sum is a list literal, I think something slow could happen. Maybe ruff could warn me about this? :-)

Metadata

Metadata

Labels

acceptedReady for implementationruleImplementing or modifying a lint rule

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions