iteration-over-set (PLC0208)
Added in v0.0.271 · Related issues · View source
Derived from the Pylint linter.
Fix is always available.
What it does
Checks for iteration over a set literal where each element in the set is
itself a literal value.
Why is this bad?
Iterating over a set is less efficient than iterating over a sequence
type, like list or tuple.
Example
Use instead: