New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive inconsistent-return-statements
with never returning functions
#4188
Comments
I don't know what to think about this issue.
to detect if a function never returns. |
Although analyzing the control_flow might work, it will undoubtably introduce complexity that will be hard to maintain in the long term. I don't really know how common this issue is but I really like the idea from #4122 to use |
Hi, First, I agree with @cdce8p. When I created my own Besides
So to summarize, I think that the best approach is:
Also, thanks for looking into this. |
Steps to reproduce
Given a file
a.py
:Current behavior
Results of
pylint a.py --disable=all --enable=inconsistent-return-statements
:Expected behavior
No message
pylint --version output
Result of
pylint --version
output:See also #3468.
The message is not emitted if
return
is added in front ofparser_error
call.The text was updated successfully, but these errors were encountered: