False positive simplify-boolean-expression
when boolean variables are modified after their intialization in a for loop
#7626
Labels
Control flow
Requires control flow understanding
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
For the following code:
...pylint emits:
This statement is incorrect:
some_function()
always returnsTrue
.Note: removing ...
or returns_false()
causes the error to disappear.Configuration
No response
Command used
Pylint output
Expected behavior
Pylint should not emit R1709/simplify-boolean-expression, since it is mistaken.
Pylint version
OS / Environment
macOS 10.14
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: