$ pylint --load-plugin=perflint perflint.py
************* Module perflint
perflint.py:3:10: W8301: Use tuple instead of list for a non-mutated sequence (use-tuple-over-list)
------------------------------------------------------------------
Your code has been rated at 6.67/10 (previous run: 3.33/10, +3.33)
Describe the bug
When
pylint
ing my codeperflint
erroneously flags__all__
with W8301.To reproduce
perflint.py
Run
pylint
:Expected behavior
__all__
should not be flagged.While
__all__
[...] must be a sequence of strings, and a tuple is a sequence, the standard is to declare__all__
aslist[str]
.