-
- Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Bug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeWork in progress
Description
Steps to reproduce
- Write following code in a file:
#pylint: disable=missing-module-docstring, missing-function-docstring, blacklisted-name def bar(): pass def foo(): try: bar() return True except IndexError: return False def goose(): try: return True except IndexError: return False - Lint it
Current behavior
************* Module bug_inco_ret bug_inco_ret.py:5:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements) Expected behavior
No message should be raised.
This bug seems to have been triggered by #3782. That's why pylint step failed for astroid CI
pylint --version output
pylint 2.6.1-dev1
astroid 2.5.0
Python 3.7.7 (default, Jun 27 2020, 15:03:12)
[GCC 8.3.0]
Metadata
Metadata
Assignees
Labels
Bug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codeWork in progress