inconsistent-return-statements not detected for while loop with flag #8280
Labels
False Negative 🦋
No message is emitted but something is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Milestone
Bug description
Configuration
No response
Command used
Pylint output
Expected behavior
I expect to get message:
R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
because when the'self.is_running
flag changes to false, I'll receiveNone
instead of str which isn't desired behaviour and should be detected by pylint.Pylint version
OS / Environment
Macos
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: