vetkit.py.quality.is-literal
is compares identity, not value. Comparing against a str/int/bytes literal with is depends on interpreter caching and can silently return False.
Last updated:
Suite: Code quality
python
is compares identity, not value. Comparing against a str/int/bytes literal with is depends on interpreter caching and can silently return False.
Category: QUALITY · Engine rule severity: WARNING
How to fix it
Use == / != to compare values.
References
Source: packages/engine/rules/quality/python.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.