consider-using-tuple / R6102#
Consider using an in-place tuple instead of list
Only for style consistency! Emitted where an in-place defined ``list`` can be replaced by a ``tuple``. Due to optimizations by CPython, there is no performance benefit from it.
for i in [1, 2, 3]: # [consider-using-tuple] print(i)
for i in (1, 2, 3): print(i)
- This message is emitted by the optional 'code_style'
checker which requires the
pylint.extensions.code_styleplugin to be loaded.
Created by the code_style checker.