Skip to content

Conversation

@hippo91
Copy link
Contributor

@hippo91 hippo91 commented Aug 19, 2020

Steps

  • [ x ] Add yourself to CONTRIBUTORS if you are a new contributor.
  • [ x ] Add a ChangeLog entry describing what your PR does.
  • [ x ] If it's a new feature or an important bug fix, add a What's New entry in doc/whatsnew/<current release.rst>.
  • [ x ] Write a good description on what the PR does.

Description

Thanks to this PR the inconsistent-return-statements message is emitted in case one of try/except statement returns explicitly while the other do not.
The treatment of If statement has also been rewritten to deal with the case when there is no orelse part.

Type of Changes

Type
🐛 Bug fix

Related Issue

Closes #3468

@coveralls
Copy link

coveralls commented Aug 20, 2020

Coverage Status

Coverage decreased (-0.004%) to 90.734% when pulling 6bfc9a1 on hippo91:bug_pylint_3468 into 8112aae on PyCQA:master.

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change!

@hippo91 hippo91 merged commit fb33249 into pylint-dev:master Sep 6, 2020
@hippo91 hippo91 deleted the bug_pylint_3468 branch September 6, 2020 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants