Derived from the Pylint linter.
Fix is always available.
This rule is unstable and in preview. The
--preview flag is required for use.
What it does#
Checks for membership tests on
Why is this bad?#
When testing for membership in a static sequence, prefer a
tuple, as Python optimizes
set membership tests.